Skip to main content

sample_from_date_header

Function sample_from_date_header 

Source
pub fn sample_from_date_header(
    date: &str,
    exchange: Exchange,
    max_rtt_us: u64,
) -> Result<UtcSample, TimingError>
Expand description

Sample from the Date header of an http-head (or any) response.

ยงErrors

TimingError when the header is not a date or the exchange is bad.