ResponseCacheModeFn

Type Alias ResponseCacheModeFn 

Source
pub type ResponseCacheModeFn = Arc<dyn Fn(&Parts, &HttpResponse) -> Option<CacheMode> + Sync + Send>;
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 */ }