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

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


Rule for absolute-URI


=== Synopsis

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

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
pass:q[_implementation-defined_] absolute_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( "http://example.com/index.htm?id=1", absolute_uri_rule );
----
[,cpp]
----
absolute-URI    = scheme ":" hier-part [ "?" query ]

hier-part       = "//" authority path-abempty
                / path-absolute
                / path-rootless
                / path-empty
----

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-4.3[4.3. Absolute URI (rfc3986)]



=== See Also


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



