Skip to main content

matches_etag

Function matches_etag 

Source
pub fn matches_etag(headers: &HeaderMap, etag: &str) -> bool
Expand description

Whether the request already holds this exact entity, per If-None-Match.

Compares against each tag in the list rather than the raw header, so a browser sending several (or W/ weak forms, which a proxy may add) is answered correctly.