boost::urls::query_rule

Rule for query

Synopsis

constexpr /* implementation-defined */ query_rule = {};
cpp

Description

Value Type

using value_type = params_encoded_view;
cpp

Example

Rules are used with the function grammar::parse.

system::result< params_encoded_view > rv = grammar::parse( "format=web&id=42&compact", query_rule );
cpp

BNF

query           = *( pchar / "/" / "?" )

query-params    = [ query-param ] *( "&" query-param )
query-param     = key [ "=" value ]
key             = *qpchar
value           = *( qpchar / "=" )
qpchar          = unreserved
                / pct-encoded
                / "!" / "$" / "'" / "(" / ")"
                / "*" / "+" / "," / ";"
                / ":" / "@" / "/" / "?"
cpp

See Also