Skip to main content

parse_if_match_version

Function parse_if_match_version 

Source
pub fn parse_if_match_version(
    headers: &HeaderMap,
) -> Result<Option<i64>, CoolError>
Expand description

Parse an If-Match header carrying a strong ETag of the form "<int>". Returns None if the header is absent. Returns an error if the header is present but malformed (weak validators, non-integer payloads, etc.).