ruma_client_api

Module http_headers

Source
Available on crate features client or server only.
Expand description

Helpers for HTTP headers with the http crate.

Structs§

ContentDisposition
The value of a Content-Disposition HTTP header.
TokenString
A non-empty string consisting only of tokens as defined in [RFC 9110 Section 3.2.6].

Enums§

ContentDispositionParseError
An error encountered when trying to parse an invalid ContentDisposition.
ContentDispositionType
A disposition type in the Content-Disposition HTTP header as defined in Section 4.2 of RFC 6266.
TokenStringParseError
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.