if_match_headers_match

Function if_match_headers_match 

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

Applies If-Match to all field lines in an HTTP header map.

§Errors

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