Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

origin_form_rule

Rule for origin-form.

Synopsis

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

constexpr implementation-defined origin_form_rule;
Description

This appears in the HTTP/1 request-line grammar.

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`]( "/index.htm?layout=mobile" , [link url.ref.boost__urls__origin_form_rule `origin_form_rule`] );
BNF
origin-form    = absolute-path [ "?" query ]

absolute-path = 1*( "/" segment )
Specification
See Also

grammar::parse, parse_origin_form, url_view.

Convenience header <boost/url.hpp>


PrevUpHomeNext