pub fn is_precondition_failed(
    req: &Request,
    etag: &EntityTag,
    last_modified: &SystemTime
) -> bool
Available on crate feature file only.
Expand description

Indicates that conditions given in the request header evaluted to false. Return true if any preconditions fail.

Note that this method is only implemented partial precedence of conditions defined in RFC7232 which is only related to precondition (Status Code 412) but not caching response (Status Code 304). Caller must handle caching responses by themselves.