kvarn::host

Enum CacheAction

source
pub enum CacheAction {
    Cache,
    Drop,
}
Expand description

Per host filter output of whether or not to cache a response with some StatusCode.

Variants§

§

Cache

Cache this status code response.

§

Drop

Don’t cache, in hope following responses have status codes which can be cached.

Implementations§

source§

impl CacheAction

source

pub fn from_cache(cache: bool) -> Self

Returns