buffer

Return the complete authority

Synopsis

string_view buffer() noexcept;

Declared in file <boost/url/authority_view.hpp> at line 253

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

  • 3.2. Authority (rfc3986)