[#boost-urls-authority_view-buffer]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/authority_view.adoc[authority&lowbar;view]::buffer
:relfileprefix: ../../../
:mrdocs:

Return the complete authority

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/authority_view.hpp#Lundefined[boost&sol;url&sol;authority&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
core::string&lowbar;view
buffer() const noexcept;
----

== Description

This function returns the authority as a percent&hyphen;encoded string&period;

== Example

[,cpp]
----
assert( parse_authority( "www.example.com" ).value().buffer() == "www.example.com" );
----
== BNF

[,cpp]
----
authority   = [ userinfo "@" ] host [ ":" port ]
----
== Exception Safety

Throws nothing&period;

== Specification

* https://datatracker.ietf.org/doc/html/rfc3986#section-3.2[3&period;2&period; Authority (rfc3986)]

== Return Value

The complete authority


[.small]#Created with https://www.mrdocs.com[MrDocs]#
