Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

uri_rule

Rule for URI.

Synopsis

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

constexpr implementation-defined uri_rule {};
Value Type
using value_type = [link url.ref.boost__urls__url_view `url_view`];
Example

Rules are used with the function grammar::parse.

system::result< url_view > rv = [link url.ref.boost__urls__grammar__parse `grammar::parse`]( "https://www.example.com/index.htm?id=guest#s1" , [link url.ref.boost__urls__uri_rule `uri_rule`] );
BNF
URI           = [link url.ref.boost__urls__scheme `scheme`] ":" hier-part [ "?" query ] [ "#" fragment ]
Specification
See Also

grammar::parse, parse_uri, url_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext