Boost.URL Logo

PrevUpHomeNext
url_view::ipvfuture

Return the host as an IPvFuture string.

Synopsis
string_view
ipvfuture() const;
Description

If host_type equals urls::host_type::ipvfuture, this function returns a string representing the address. Otherwise it returns the empty string.

Example
url_view u( "http://[v1fe.d:9]" );

assert( u.ipvfuture() == "v1fe.d:9" );
BNF
IPvFuture  = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
Exception Safety

Throws nothing.

Specification
See Also

encoded_hostname, hostname, host_type, ipv4_address, ipv6_address,


PrevUpHomeNext