pub type MetadataProvider = Arc<dyn Fn(&Parts, &Parts) -> Option<Vec<u8>> + Send + Sync>;Expand description
A closure that takes http::request::Parts and http::response::Parts and returns optional metadata to store with the cached response.
This allows middleware to compute and store additional information alongside cached responses.
Aliased Typeยง
pub struct MetadataProvider { /* private fields */ }