Enum http_stub::header::CacheDirective [] [src]

pub enum CacheDirective {
    NoCache,
    NoStore,
    NoTransform,
    OnlyIfCached,
    MaxAge(u32),
    MaxStale(u32),
    MinFresh(u32),
    MustRevalidate,
    Public,
    Private,
    ProxyRevalidate,
    SMaxAge(u32),
    Extension(String, Option<String>),
}

CacheControl contains a list of these directives.

Variants

NoCache

"no-cache"

NoStore

"no-store"

NoTransform

"no-transform"

OnlyIfCached

"only-if-cached"

MaxAge

"max-age=delta"

MaxStale

"max-stale=delta"

MinFresh

"min-fresh=delta"

MustRevalidate

"must-revalidate"

Public

"public"

Private

"private"

ProxyRevalidate

"proxy-revalidate"

SMaxAge

"s-maxage=delta"

Extension

Extension directives. Optionally include an argument.