[#boost-urls-origin_form_rule]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::origin&lowbar;form&lowbar;rule
:relfileprefix: ../../
:mrdocs:


Rule for origin&hyphen;form

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/origin_form_rule.hpp#L65[boost&sol;url&sol;rfc&sol;origin&lowbar;form&lowbar;rule&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
inline constexpr &sol;&ast; implementation-defined &ast;&sol;::xref:boost/urls/implementation_defined/origin_form_rule_t.adoc[origin&lowbar;form&lowbar;rule&lowbar;t] origin&lowbar;form&lowbar;rule = &lcub;&rcub;;
----

== Description


This appears in the HTTP&sol;1 request&hyphen;line grammar&period;


=== Value Type

[,cpp]
----
using value_type = url_view;
----

=== Example

Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[grammar&colon;&colon;parse]&period;

[,cpp]
----
system::result< url_view > rv = grammar::parse( "/index.htm?layout=mobile", origin_form_rule );
----

=== BNF

[,cpp]
----
origin-form    = absolute-path [ "?" query ]

absolute-path = 1*( "/" segment )
----

=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1[5&period;3&period;1&period;  origin&hyphen;form (rfc7230)]



== See Also


xref:boost/urls/grammar/parse-02.adoc[grammar&colon;&colon;parse],        xref:boost/urls/parse_origin_form.adoc[parse&lowbar;origin&lowbar;form],        xref:boost/urls/url_view.adoc[url&lowbar;view]&period;






[.small]#Created with https://www.mrdocs.com[MrDocs]#
