Skip to main content

Module request

Module request 

Source
Expand description

Cacheable request types and traits.

This module provides types for determining whether requests should be cached and extracting cache keys from them:

§Request Processing Flow

When a request is processed:

  1. Predicates evaluate whether the request should be cached
  2. Extractors generate the cache key from request components
  3. The result is either Cacheable (with key) or NonCacheable

Structs§

CacheablePolicyData
A cacheable request bundled with its generated cache key.

Traits§

CacheableRequest
Trait for request types that can participate in caching.

Type Aliases§

RequestCachePolicy
Cache policy for requests.