URI Parser #
This module provides parsers for HTTP request targets and HTTP-oriented URIs aligned with RFC 3986. It handles parsing of schemes, authorities, paths, queries, and fragments.
Notable intentional constraints:
- hosts are limited to IPv4, bracketed IPv6, and DNS-style domain names (letters, digits,
-and_), with percent-encoding decoded wherever a host appears (URI, request target,Host) - IPvFuture (
v...) insideIP-literalis currently rejected
References:
Parses a URI path with combined parsing and validation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a URI (Uniform Resource Identifier).
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] hier-part = "//" authority path-abempty / path-absolute / path-rootless / path-empty
The fragment is percent-decoded, with bytes that are not valid UTF-8 replaced by U+FFFD.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a request target with combined parsing and validation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a URI reference as defined in RFC 3986 Section 4.1:
URI-reference = URI / relative-ref
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
relative-part = "//" authority path-abempty
/ path-absolute
/ path-noscheme
/ path-empty
A leading scheme ":" commits to a full URI, and a leading // to an authority: neither falls back
to being read as a path when the rest does not parse. Otherwise the reference is an absolute-path
(/path), path-noscheme (foo/bar, ../baz), query-only (?q), fragment-only (#frag), or empty.
The fragment is percent-decoded, with bytes that are not valid UTF-8 replaced by U+FFFD.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses an HTTP Host header value.
Equations
- One or more equations did not get rendered due to their size.