[go: up one dir, main page]

Expand description

A caching middleware that follows HTTP caching rules, thanks to http-cache-semantics. By default, it uses cacache as the backend cache manager.

Features

The following features are available. By default manager-cacache is enabled.

  • manager-cacache (default): use cacache, a high-performance disk cache, for the manager backend.
  • with-http-types (disabled): enable http-types type conversion support

Structs

Implements CacheManager with cacache as the backend.

Options struct provided by http-cache-semantics. Configuration options which control behavior of the cache. Use with CachePolicy::new_options().

Caches requests according to http spec.

A basic generic type that represents an HTTP response

Enums

A generic “error” for HTTP caches

Similar to make-fetch-happen cache options. Passed in when the HttpCache struct is being built.

Represents an HTTP version

Traits

A trait providing methods for storing, reading, and removing cache records.

Describes the functionality required for interfacing with HTTP client middleware

Type Definitions

A Result typedef to use with the CacheError type