Struct trillium_caching_headers::CacheControlHeader [−][src]
pub struct CacheControlHeader(_);
Expand description
A representation of the
Cache-Control
header.
Implementations
returns true if one of the directives is immutable
returns a duration if one of the directives is max-age
returns a duration if one of the directives is max-fresh
returns Some(None) if one of the directives is max-stale
but
no value is provided. returns Some(Some(duration)) if one of
the directives is max-stale and includes a duration in
seconds, such as max-stale=3600
. Returns None if there is no
max-stale
directive
returns true if this header contains a must-revalidate
directive
returns true if this header contains a no-cache
directive
returns true if this header contains a no-store
directive
returns true if this header contains a no-transform
directive
returns true if this header contains an only-if-cached
directive
returns true if this header contains a private
directive
returns true if this header contains a proxy-revalidate
directive
returns a duration if this header contains an s-maxage
directive
returns a duration if this header contains a stale-if-error directive
returns a duration if this header contains a stale-while-revalidate directive
Trait Implementations
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CacheControlHeader
impl Send for CacheControlHeader
impl Sync for CacheControlHeader
impl Unpin for CacheControlHeader
impl UnwindSafe for CacheControlHeader
Blanket Implementations
Mutably borrows from an owned value. Read more