:relfileprefix: ../../ [#boost-urls-origin_form_rule] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::origin_form_rule Rule for origin-form === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr origin_form_rule_t const origin_form_rule = {}; ---- === Description This appears in the HTTP/1 request-line grammar. [,cpp] ---- using value_type = url_view; ---- === Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[grammar::parse] . [,cpp] ---- system::result< url_view > rv = grammar::parse( "/index.htm?layout=mobile", origin_form_rule ); ---- [,cpp] ---- origin-form = absolute-path [ "?" query ] absolute-path = 1*( "/" segment ) ---- * link:https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1[5.3.1. origin-form (rfc7230)] === See Also xref:boost/urls/grammar/parse-02.adoc[grammar::parse] , xref:boost/urls/parse_origin_form.adoc[parse_origin_form] , xref:boost/urls/url_view.adoc[url_view] .