Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

uri_reference_rule

Rule for URI-reference.

Synopsis

Defined in header <boost/url/rfc/uri_reference_rule.hpp>

constexpr implementation-defined uri_reference_rule {};
Value Type
using value_type = url_view;

;

Example

Rules are used with the function grammar::parse.

result< url_view > rv = grammar::parse( "ws://echo.example.com/?name=boost#demo", uri_reference_rule );
BNF
URI-reference = URI / relative-ref

URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
Specification
See Also

grammar::parse, parse_uri_reference, url_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext