Crate http_cache_semantics
source ·Expand description
Tells when responses can be reused from a cache, taking into account HTTP RFC 7234 rules for user agents and shared caches.
It’s aware of many tricky details such as the Vary
header, proxy revalidation, and authenticated responses.
Structs
- Configuration options which control behavior of the cache. Use with
CachePolicy::new_options()
. - Identifies when responses can be reused from a cache, taking into account HTTP RFC 7234 rules for user agents and shared caches. It’s aware of many tricky details such as the Vary header, proxy revalidation, and authenticated responses.
Enums
- New policy and flags to act on
after_response()
- Next action suggested after
before_request()
Traits
- Allows using either
Request
orrequest::Parts
, or your own newtype. - Allows using either
Response
orresponse::Parts
, or your own newtype.