Expand description
Helpers for HTTP headers.
Structs§
- The value of a
Content-Disposition
HTTP header. - A non-empty string consisting only of
token
s as defined in [RFC 9110 Section 3.2.6].
Enums§
- An error encountered when trying to parse an invalid
ContentDisposition
. - A disposition type in the
Content-Disposition
HTTP header as defined in Section 4.2 of RFC 6266. - The parsed string contains a character not allowed for a
TokenString
.
Functions§
- Whether the given char is in the US-ASCII character set and allowed inside a quoted string.
- Whether the given byte is a
token
char. - Whether the given bytes slice is a
token
. - Whether the given string is a
token
. - Whether the given char is a visible US-ASCII char.
- If the US-ASCII field value does not contain only token chars, convert it to a quoted string.
- Remove characters that do not pass
is_ascii_string_quotable()
from the given string. - Removes the escape backslashes in the given string.