Home | Libraries | People | FAQ | More |
(Inherited from url_view_base
)
Return the host name.
pct_string_view encoded_host_name() const;
If the host type is host_type::name
, this function returns the
name as a string. Otherwise, if the host type is not an name, it returns
an empty string. The returned string may contain percent escapes.
assert( url_view( "https://www%2droot.example.com/" ).encoded_host_name() == "www%2droot.example.com" );
Constant.
Throws nothing.
host = IP-literal / IPv4address / reg-name IP-literal = "[" ( IPv6address / IPvFuture ) "]" reg-name = *( unreserved / pct-encoded / "-" / ".")