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
531
Examples
use hyper::header::{Headers, AccessControlMaxAge}; let mut headers = Headers::new(); headers.set(AccessControlMaxAge(1728000u32));