Return true if a port is present
<include/boost/url/authority_view.hpp>
bool has_port() const noexcept;
This function returns true if an authority is present and contains a port.
assert( url_view( "wss://www.example.com:443" ).has_port() );
authority = [ userinfo "@" ] host [ ":" port ] port = *DIGIT
encoded_host_and_port , port , port_number .