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

pub struct AccessControlMaxAge(pub u32);

Access-Control-Max-Age 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.

ABNF

Access-Control-Max-Age = \"Access-Control-Max-Age\" \":\" delta-seconds

Example values

Examples

use hyper::header::{Headers, AccessControlMaxAge};

let mut headers = Headers::new();
headers.set(AccessControlMaxAge(1728000u32));

Methods from Deref<Target = u32>

Trait Implementations

impl Clone for AccessControlMaxAge
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AccessControlMaxAge
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for AccessControlMaxAge
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Deref for AccessControlMaxAge
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for AccessControlMaxAge
[src]

[src]

Mutably dereferences the value.

impl Header for AccessControlMaxAge
[src]

[src]

Returns the name of the header field this belongs to. Read more

[src]

Parse a header from a raw stream of bytes. Read more

impl HeaderFormat for AccessControlMaxAge
[src]

[src]

Format a header to be output into a TcpStream. Read more

impl Display for AccessControlMaxAge
[src]

[src]

Formats the value using the given formatter. Read more