Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
authority_view::buffer

Return the complete authority.

Synopsis
core::string_view
buffer() const;
Description

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

Example
assert( [link url.ref.boost__urls__parse_authority `parse_authority`]( "www.example.com" ).value().[link url.ref.boost__urls__authority_view.buffer `buffer`]() == "www.example.com" );
BNF
authority   = [ [link url.ref.boost__urls__authority_view.userinfo `userinfo`] "@" ] [link url.ref.boost__urls__authority_view.host `host`] [ ":" [link url.ref.boost__urls__authority_view.port `port`] ]
Exception Safety

Throws nothing.

Specification

PrevUpHomeNext