if_none_match_header_matches

Function if_none_match_header_matches 

Source
pub fn if_none_match_header_matches(
    raw: &str,
    resource_exists: bool,
    current_etag: Option<&str>,
) -> Result<bool, HttpValidatorError>
Expand description

Applies the weak comparison required by If-None-Match.

§Errors

Returns HttpValidatorError::InvalidEtagList when the condition or current entity-tag is malformed or the condition exceeds the parser’s element limit.