[#BF9FD1F4B23488A243881ACD52DEE4F2AAD505D3]

Function url_view_base:: authority

Return the authority

Synopsis

            authority_view
authority() const noexcept;
        

Description

This function returns the authority as an authority_view .

Example

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

Complexity

Constant.

Exception Safety

Throws nothing.

BNF

authority = [ userinfo "@" ] host [ ":" port ]

Specification

  • 3.2. Authority (rfc3986)