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§
- Cache
Options - Configuration options which control behavior of the cache. Use with
CachePolicy::new_options()
. - Cache
Policy - 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§
- After
Response - New policy and flags to act on
after_response()
- Before
Request - Next action suggested after
before_request()
Traits§
- Request
Like - Allows using either
Request
orrequest::Parts
, or your own newtype. - Response
Like - Allows using either
Response
orresponse::Parts
, or your own newtype.