[#boost-urls-absolute_uri_rule]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::absolute&lowbar;uri&lowbar;rule
:relfileprefix: ../../
:mrdocs:

Rule for absolute&hyphen;URI

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/absolute_uri_rule.hpp#L69[boost&sol;url&sol;rfc&sol;absolute&lowbar;uri&lowbar;rule&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
inline constexpr &sol;&ast; implementation-defined &ast;&sol; absolute&lowbar;uri&lowbar;rule = &lcub;&rcub;;
----

== Value Type

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

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

[,cpp]
----
system::result< url_view > rv = grammar::parse( "http://example.com/index.htm?id=1", absolute_uri_rule );
----
== BNF

[,cpp]
----
absolute-URI    = scheme ":" hier-part [ "?" query ]

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

* https://datatracker.ietf.org/doc/html/rfc3986#section-4.3[4&period;3&period; Absolute URI (rfc3986)]

== See Also

xref:boost/urls/grammar/parse-09.adoc[`grammar&colon;&colon;parse`], xref:boost/urls/parse_absolute_uri.adoc[`parse&lowbar;absolute&lowbar;uri`], xref:boost/urls/url_view.adoc[`url&lowbar;view`]&period;


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