[go: up one dir, main page]

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 */ }

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Arc<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.