Struct hyper::header::AccessControlMaxAge [-] [+] [src]

pub struct AccessControlMaxAge(pub u32);

The Access-Control-Max-Age response header, part of CORS.

The Access-Control-Max-Age header indicates how long the results of a preflight request can be cached in a preflight result cache.

Spec: www.w3.org/TR/cors/#access-control-max-age-response-header

Trait Implementations

impl Header for AccessControlMaxAge

fn header_name() -> &'static str

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

impl HeaderFormat for AccessControlMaxAge

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

impl Header for AccessControlMaxAge

fn header_name() -> &'static str

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

impl HeaderFormat for AccessControlMaxAge

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

impl Header for AccessControlMaxAge

fn header_name() -> &'static str

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

impl HeaderFormat for AccessControlMaxAge

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

Derived Implementations

impl Debug for AccessControlMaxAge

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

impl PartialEq for AccessControlMaxAge

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

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

impl Copy for AccessControlMaxAge

impl Clone for AccessControlMaxAge

fn clone(&self) -> AccessControlMaxAge

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

impl Debug for AccessControlMaxAge

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

impl PartialEq for AccessControlMaxAge

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

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

impl Copy for AccessControlMaxAge

impl Clone for AccessControlMaxAge

fn clone(&self) -> AccessControlMaxAge

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

impl Debug for AccessControlMaxAge

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

impl PartialEq for AccessControlMaxAge

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

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

impl Copy for AccessControlMaxAge

impl Clone for AccessControlMaxAge

fn clone(&self) -> AccessControlMaxAge

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