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
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
Instances For
Creates a Value from a string, panicking with an error message if the string contains invalid
characters for HTTP header values.