Skip to main content

header_matches

Function header_matches 

Source
pub fn header_matches(expected: &str, provided: &str) -> bool
Expand description

Whether the provided header value matches the expected token, compared in constant time. Returns false immediately on length mismatch — tokens are fixed-length, so length is not secret.