ruma::api::client::http_headers

Function system_time_to_http_date

Source
pub fn system_time_to_http_date(
    time: &SystemTime,
) -> Result<HeaderValue, HeaderSerializationError>
Available on (crate features client-api-c or client-api-s) and (crate features client or server) and crate feature api only.
Expand description

Convert as SystemTime to a HTTP date header value.