Documentation

Std.Internal.Http.Data.Headers.Value

Header Values #

This module defines the Value type, which represents validated HTTP header values that conform to HTTP standards.

Reference: https://www.rfc-editor.org/rfc/rfc9110.html#name-field-values

@[reducible, inline]

Proposition that asserts all characters in a string are valid for HTTP header values, and that the first and last characters (if present) are field-vchar (not SP/HTAB).

field-value = field-content field-content = field-vchar [ 1( SP / HTAB / field-vchar ) field-vchar ]

Reference: https://www.rfc-editor.org/rfc/rfc9110.html#section-5.5

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

    A validated HTTP header value that ensures all characters conform to HTTP standards.

    Instances For
      Equations
      Instances For
        def Std.Http.Header.instDecidableEqValue.decEq (x✝ x✝¹ : Value) :
        Decidable (x✝ = x✝¹)
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[implicit_reducible]
            Equations

            Attempts to create a Value from a String, returning none if the string contains invalid characters for HTTP header values.

            Equations
            Instances For

              Creates a Value from a string, panicking with an error message if the string contains invalid characters for HTTP header values.

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

                Performs a case-insensitive comparison between a Value and a String. Returns true if they match.

                Equations
                Instances For