boost::urls::authority_rule :: Boost Libraries Documentation

# boost::urls::authority_rule

Rule for authority

## Synopsis

Declared in `<boost/url/rfc/authority_rule.hpp>`

    constexpr /* implementation-defined */ authority_rule = {};

## Value Type

    using value_type = authority_view;

## Example

Rules are used with the function `grammar::parse`.

    system::result< authority_view > rv = grammar::parse( "user:pass@example.com:8080", authority_rule );

## BNF

    authority   = [ userinfo "@" ] host [ ":" port ]

## Specification

- 3.2. Authority (rfc3986)

## See Also

`authority_view`, `grammar::parse`, `parse_authority`.

Created with MrDocs