Function saphir::file::conditional_request::is_fresh
source · pub fn is_fresh(
req: &Request,
etag: &EntityTag,
last_modified: &SystemTime
) -> bool
Available on crate feature
file
only.Expand description
Determine freshness of requested resource by validate If-None-Match
and If-Modified-Since
precondition header fields containing validators.
See more on RFC7234, 4.3.2. Handling a Received Validation Request.