boost::urls::authority_view::host_type

Return the host type

Synopsis

Declared in header <boost/url/authority_view.hpp>

urls::host_type
host_type() const noexcept;

Description

This function returns one of the following constants representing the type of host present.

Example

assert( url_view( "https://192.168.0.1/local.htm" ).host_type() == host_type::ipv4 );

Complexity

Constant.

Exception Safety

Throws nothing.

Specification