:relfileprefix: ../../
[#boost-urls-uri_rule]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::uri_rule


Rule for URI


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/uri_rule.hpp#L92[boost/url/rfc/uri_rule.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
pass:q[_implementation-defined_] uri_rule = {};
----

=== Description

[,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( "https://www.example.com/index.htm?id=guest#s1", uri_rule );
----
[,cpp]
----
URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
----

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3[3. Syntax Components (rfc3986)]



=== See Also


xref:boost/urls/grammar/parse-02.adoc[grammar::parse]
,
xref:boost/urls/parse_uri.adoc[parse_uri]
,
xref:boost/urls/url_view.adoc[url_view]
.



