Struct iron::headers::CacheControl [-] [+] [src]

pub struct CacheControl(pub Vec<CacheDirective>);

Cache-Control header, defined in RFC7234

The Cache-Control header field is used to specify directives for caches along the request/response chain. Such cache directives are unidirectional in that the presence of a directive in a request does not imply that the same directive is to be given in the response.

ABNF

Cache-Control   = 1#cache-directive
cache-directive = token [ "=" ( token / quoted-string ) ]

Example values

Trait Implementations

impl Deref for CacheControl

type Target = Vec<CacheDirective>

fn deref(&'a self) -> &'a Vec<CacheDirective>

impl DerefMut for CacheControl

fn deref_mut(&'a mut self) -> &'a mut Vec<CacheDirective>

impl Header for CacheControl

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<CacheControl>

impl HeaderFormat for CacheControl

fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl Debug for CacheControl

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for CacheControl

fn clone(&self) -> CacheControl

fn clone_from(&mut self, source: &Self)

impl PartialEq<CacheControl> for CacheControl

fn eq(&self, __arg_0: &CacheControl) -> bool

fn ne(&self, __arg_0: &CacheControl) -> bool