Enum kvarn::host::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 Self::Cache if cache is true. Else Self::Drop.

source

pub fn from_drop(drop: bool) -> Self

Returns