Documentation

Std.Http.Data.URI.Parser

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:

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

    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
        

        Tries a full URI first (requires a scheme). Falls back to a relative reference: authority-rooted (//host/path), absolute-path (/path), path-noscheme (foo/bar, ../baz), query-only (?q), fragment-only (#frag), or empty.

        Equations
        Instances For

          Parses an HTTP Host header value.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For