ParseURIAuthority¶
Parse a standalone authority string ([userinfo@]host[:port]).
Use this for HTTP CONNECT request-targets (authority-form) where the
request-target is host:port without a scheme or // prefix.
ParseURI would misinterpret host:port as scheme:path.
The @ delimiter is identified by scanning for the last @ in the
authority string, following the WHATWG URL Standard convention. RFC 3986
grammar makes the first @ the delimiter (userinfo cannot contain
literal @, only %40), but using the last @ is more robust against
real-world URIs with unencoded @ in userinfo.
Constructors¶
create¶
Returns¶
- ParseURIAuthority val^
Public Functions¶
apply¶
Parameters¶
- raw: String val
Returns¶
- (URIAuthority val | InvalidPort val | InvalidHost val)
eq¶
Parameters¶
- that: ParseURIAuthority val
Returns¶
- Bool val
ne¶
Parameters¶
- that: ParseURIAuthority val
Returns¶
- Bool val