boost::urls::url_view_base::authority

Return the authority

Synopsis

Declared in <include/boost/url/url_view_base.hpp>

authority_view
authority() const noexcept;

Description

This function returns the authority as an authority_view .

authority_view a = url_view( "https://www.example.com:8080/index.htm" ).authority();

Constant.

Throws nothing.

authority = [ userinfo "@" ] host [ ":" port ]
  • 3.2. Authority (rfc3986)
  • See Also

    encoded_authority , has_authority .

    Created with MrDocs