[#boost-urls-authority_view-buffer] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority_view]::buffer :relfileprefix: ../../../ :mrdocs: Return the complete authority == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L253[boost/url/authority_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- core::string_view buffer() const noexcept; ---- == Description This function returns the authority as a percent‐encoded string. === Example [,cpp] ---- assert( parse_authority( "www.example.com" ).value().buffer() == "www.example.com" ); ---- === BNF [,cpp] ---- authority = [ userinfo "@" ] host [ ":" port ] ---- === Exception Safety Throws nothing. === Specification * link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2[3.2. Authority (rfc3986)] [.small]#Created with https://www.mrdocs.com[MrDocs]#