![]() |
Home | Libraries | People | FAQ | More |
Return the host and port.
pct_string_view encoded_host_and_port() const;
If an authority is present, this function returns the host and optional port as a string, which may be empty. Otherwise it returns an empty string. The returned string may contain percent escapes.
assert( url_view( "http://www.example.com:8080/index.htm" ).[link url.ref.boost__urls__authority_view.encoded_host_and_port `encoded_host_and_port`]() == "www.example.com:8080" );
Constant.
Throws nothing.
authority = [ [link url.ref.boost__urls__authority_view.userinfo `userinfo`] "@" ] [link url.ref.boost__urls__authority_view.host `host`] [ ":" [link url.ref.boost__urls__authority_view.port `port`] ]