:relfileprefix: ../../
[#boost-urls-authority_rule]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::authority_rule


Rule for authority


=== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
pass:q[_implementation-defined_] authority_rule = {};
----

=== Description

[,cpp]
----
using value_type = authority_view;
----

=== Rules are used with the function

xref:boost/urls/grammar/parse-02.adoc[grammar::parse]
.
[,cpp]
----
system::result< authority_view > rv = grammar::parse( "user:pass@example.com:8080", authority_rule );
----
[,cpp]
----
authority   = [ userinfo "@" ] host [ ":" port ]
----

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2[3.2. Authority (rfc3986)]



=== See Also


xref:boost/urls/authority_view.adoc[authority_view]
,
xref:boost/urls/grammar/parse-02.adoc[grammar::parse]
,
xref:boost/urls/parse_authority.adoc[parse_authority]
.



