...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return the host type.
urls::host_type host_type() const;
This function returns one of the following constants representing the type of host present.
When has_authority
is false, the host
type is host_type::none
.
assert( url_view( "https://192.168.0.1/local.htm" ).host_type() == host_type::ipv4 );
Constant.
Throws nothing.