enum te_string_uri_escape_mode

Overview

URI escaping modes suitable for various parts of URI. More…

#include <te_string.h>

enum te_string_uri_escape_mode {
    TE_STRING_URI_ESCAPE_BASE,
    TE_STRING_URI_ESCAPE_USER,
    TE_STRING_URI_ESCAPE_HOST,
    TE_STRING_URI_ESCAPE_PATH_SEGMENT,
    TE_STRING_URI_ESCAPE_PATH,
    TE_STRING_URI_ESCAPE_QUERY,
    TE_STRING_URI_ESCAPE_QUERY_VALUE,
    TE_STRING_URI_ESCAPE_FRAG,
};

Detailed Documentation

URI escaping modes suitable for various parts of URI.

Enum Values

TE_STRING_URI_ESCAPE_BASE

Basic escaping.

Only RFC3986 “unreserved” characters are allowed.

TE_STRING_URI_ESCAPE_USER

Escaping for the userinfo part.

TE_STRING_URI_ESCAPE_HOST

Escaping for the host part.

TE_STRING_URI_ESCAPE_PATH_SEGMENT

Escaping for the path segment.

This means that a path separator / would be escaped.

TE_STRING_URI_ESCAPE_PATH

Escaping for the path component as a whole.

TE_STRING_URI_ESCAPE_QUERY

Escaping for the query string as a whole.

TE_STRING_URI_ESCAPE_QUERY_VALUE

Escaping for the query keys and values.

This means that =, ampersands and semicolons are escaped.

TE_STRING_URI_ESCAPE_FRAG

Escaping for the fragment component.