Boost.URL

    • Quick Look
    • URLs
      • Parsing
      • Containers
      • Segments
      • Params
      • Normalization
      • String Token
      • Percent Encoding
      • Formatting
    • Customization
      • Parse Rules
      • Character Sets
      • Compound Rules
      • Ranges
      • RFC 3986
    • Examples
      • QR Code
      • Finicky
      • mailto URLs
      • Magnet Link
      • File Router
      • Router
      • Sanitizing URLs
    • Reference
      • Index
      • Concepts
        • CharSet
        • Rule
        • StringToken
      • Help Card

boost::urls::uri_rule

Rule for URI

Synopsis

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

constexpr
implementation-defined uri_rule = {};

Description

using value_type = url_view;

Rules are used with the function

grammar::parse .

system::result< url_view > rv = grammar::parse( "https://www.example.com/index.htm?id=guest#s1", uri_rule );
URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
  • 3. Syntax Components (rfc3986)

See Also

grammar::parse , parse_uri , url_view .