Crate http_cache_semantics[][src]

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

CacheOptions

Configuration options which control behavior of the cache. Use with CachePolicy::new_options().

CachePolicy

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

AfterResponse

New policy and flags to act on after_response()

BeforeRequest

Next action suggested after before_request()

Traits

RequestLike

Allows using either Request or request::Parts, or your own newtype.

ResponseLike

Allows using either Response or response::Parts, or your own newtype.