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
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.
- value : String
The string data.
- isValidHeaderValue : IsValidHeaderValue self.value
The proof that it's a valid header value.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Std.Http.Header.instBEqValue.beq x✝¹ x✝ = false
Instances For
Equations
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
Equations
Equations
Equations
- Std.Http.Header.instInhabitedValue = { default := { value := "", isValidHeaderValue := Std.Http.Header.instInhabitedValue._proof_1 } }
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
Equations
- Std.Http.Header.Value.instToString = { toString := fun (v : Std.Http.Header.Value) => v.value }