[#boost-urls-authority_rule] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::authority_rule :relfileprefix: ../../ :mrdocs: Rule for authority == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/authority_rule.hpp#L93[boost/url/rfc/authority_rule.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr /* implementation-defined */::xref:boost/urls/implementation_defined/authority_rule_t.adoc[authority_rule_t] authority_rule = {}; ---- == Description === Value Type [,cpp] ---- using value_type = authority_view; ---- === Example 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 ); ---- === BNF [,cpp] ---- authority = [ userinfo "@" ] host [ ":" port ] ---- === Specification * 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]. [.small]#Created with https://www.mrdocs.com[MrDocs]#