Skip to main content

parse_timeout_header_ms

Function parse_timeout_header_ms 

Source
pub fn parse_timeout_header_ms(raw: &str) -> Option<u64>
Expand description

Parses a client timeout header value ("5000", "500ms", "5s") into milliseconds.

§Arguments

  • &str - Raw header value.

§Returns

  • Option<u64> - Parsed positive duration in milliseconds.