Available on crate features
client
or server
only.Expand description
Helpers for HTTP headers with the http
crate.
Structs§
- Content
Disposition - The value of a
Content-Disposition
HTTP header. - Token
String - A non-empty string consisting only of
token
s as defined in [RFC 9110 Section 3.2.6].
Enums§
- Content
Disposition Parse Error - An error encountered when trying to parse an invalid
ContentDisposition
. - Content
Disposition Type - A disposition type in the
Content-Disposition
HTTP header as defined in Section 4.2 of RFC 6266. - Token
String Parse Error - The parsed string contains a character not allowed for a
TokenString
.
Constants§
- CROSS_
ORIGIN_ RESOURCE_ POLICY - The
Cross-Origin-Resource-Policy
HTTP response header.
Functions§
- http_
date_ to_ system_ time - Convert a header value representing a HTTP date to a
SystemTime
. - system_
time_ to_ http_ date - Convert as
SystemTime
to a HTTP date header value.