Type Alias http_cache::CacheKey

source ·
pub type CacheKey = Arc<dyn Fn(&Parts) -> String + Send + Sync>;
Expand description

A closure that takes http::request::Parts and returns a String. By default, the cache key is a combination of the request method and uri with a colon in between.

Aliased Type§

struct CacheKey { /* private fields */ }