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

Functions uriAuthorityLookahead

1
2
3
4
5
6
module juptune.http.uri;

void uriAuthorityLookahead(
    const char[] chars, 
    UriParseHints hints
);

Documentation

Looks ahead in the URI to determine whether the authority component has a user info and/or port component.

Notes

O(n) worst case. Terminate on first character that terminates the authority component.

Sets the UriParseHints.authorityHasUserInfoand UriParseHints.authorityHasPorthints where appropriate.

IPv6 style addresses are handled correctly.

ON THIS PAGE