Type Alias ResponseCacheModeFn

Source
pub type ResponseCacheModeFn = Arc<dyn Fn(&Parts, &HttpResponse) -> Option<CacheMode> + Send + Sync>;
Expand description

A closure that takes http::request::Parts, HttpResponse and returns a CacheMode to override caching behavior based on the response

Aliased Typeยง

pub struct ResponseCacheModeFn { /* private fields */ }