enum te_string_uri_escape_mode

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.