Skip to main content

parse_http_date

Function parse_http_date 

Source
pub fn parse_http_date(text: &str) -> Option<i64>
Expand description

Parse any of the three HTTP date formats to a unix timestamp.

Returns None for anything malformed — a conditional header that cannot be read is treated as absent, which is what RFC 9110 §13.1.3 asks for.