Skip to main content

check_conditional

Function check_conditional 

Source
pub fn check_conditional(
    req: &Request<impl Body>,
    current_etag: &str,
    current_last_modified: &str,
) -> ConditionalResult
Expand description

Checks If-None-Match and If-Modified-Since headers against the current ETag and Last-Modified values.

Per RFC 7232, If-None-Match takes precedence over If-Modified-Since.