Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Enums UriParseHints

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module 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
}

Documentation

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.

ON THIS PAGE