Return the complete authority

Synopsis

Declared in header </boost/url/authority_view.hpp#L253[boost/url/authority_view.hpp,window=blank_]>

string_view
buffer() const noexcept;

Description

This function returns the authority as a percent-encoded string.

Example

assert( parse_authority( "www.example.com" ).value().buffer() == "www.example.com" );

BNF

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

Exception Safety

Throws nothing.

Specification

Return Value

  • string_view