Return the host
template<
class StringToken = return_string>
StringToken::result_type
host_address(
StringToken&& token);
Declared in file <boost/url/url_view_base.hpp> at line 1109
The value returned by this function depends on the type of host returned from the function host_type.
assert( url_view( "https://[1::6:c0a8:1]/" ).host_address() == "1::6:c0a8:1" );
Linear in `this->host_address().size()`.
Calls to allocate may throw.
host = IP-literal / IPv4address / reg-name
IP-literal = "[" ( IPv6address / IPvFuture ) "]"
reg-name = *( unreserved / pct-encoded / "-" / ".")