:relfileprefix: ../../../
[#boost-urls-authority_view-buffer]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/authority_view.adoc[pass:[authority_view]]::buffer


Return the complete authority


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#L253[boost/url/authority_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,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)]








