123456789101112131415161718192021222324252627282930313233343536373839404142434445module juptune.http.uri;
enum UriParseHints : int
{
///
none = 0,
/// e.g. "scheme://authority/path?query#fragment"
isAbsolute = 1,
/// e.g. "//authority/path?query#fragment"
isNetworkReference = 2,
/// e.g. "authority/path?query#fragment", see UriParseRules.allowUriSuffix
isUriSuffix = 4,
/// e.g. "host:port"
authorityHasPort = 8,
/// e.g. "user:info@host"
authorityHasUserInfo = 16,
/// e.g. "[::1]"
authorityHostIsIpv6 = 32,
/// e.g. "127.0.0.1"
authorityHostIsIpv4 = 64,
/// e.g. "localhost"
authorityHostIsDomain = 128,
/// e.g. "/some/path"
pathIsAbsolute = 256,
/// e.g. "some/path"
pathIsRootless = 512,
/// e.g. ""
pathIsEmpty = 1024,
/// e.g. "abc:123/abd"
pathHasStartColon = 2048,
/// e.g. ""
queryIsEmpty = 4096,
/// e.g. ""
fragmentIsEmpty = 8192,
/// e.g. "user%40info@host"
percentEncodedUserInfo = 16384,
/// e.g. "[::1%25%3a%3a1]"
percentEncodedHost = 32768,
/// e.g. "/some%2fpath"
percentEncodedPath = 65536,
/// e.g. "?some%3fquery"
percentEncodedQuery = 131072,
/// e.g. "#some%23fragment"
percentEncodedFragment = 262144
}
A bitmask of hints that can be used to determine the structure of a URI.
Users should not set these values themselves as it may cause incorrect behaviour during parsing. Only parsing functions should set these values.
Since the end result of a URI is essentially a set of strings, certain aspects of the URI are lost or ambiguous, so the parser returns these hints to help the caller determine the exact nature of the URI.