Struct rocket::http::hyper::header::AccessControlMaxAge [−][src]
pub struct AccessControlMaxAge(pub u32);
Expand description
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
531
Examples
use hyper::header::{Headers, AccessControlMaxAge};
let mut headers = Headers::new();
headers.set(AccessControlMaxAge(1728000u32));
Tuple Fields
0: u32
Methods from Deref<Target = u32>
Trait Implementations
Performs the conversion.
Returns the name of the header field this belongs to. 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 AccessControlMaxAge
impl Send for AccessControlMaxAge
impl Sync for AccessControlMaxAge
impl Unpin for AccessControlMaxAge
impl UnwindSafe for AccessControlMaxAge
Blanket Implementations
Mutably borrows from an owned value. Read more