Skip to main content

parse_prefix

Function parse_prefix 

Source
pub fn parse_prefix(text: &str) -> Option<(SystemTime, &str)>
Expand description

The instant an IMF-fixdate at the start of text names, along with the matched 29-byte timestamp slice, or None when text does not begin with one.

Parsing the fixed 29-byte RFC 9110 IMF-fixdate prefix (Wed, 02 Dec 2026 15:49:31 GMT) extracts crates.io’s try again after time regardless of whatever prose follows it.