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));
Methods from Deref<Target = u32>
Trait Implementations
impl Clone for AccessControlMaxAge
[src]
impl Clone for AccessControlMaxAge
fn clone(&self) -> AccessControlMaxAge
[src]
fn clone(&self) -> AccessControlMaxAge
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for AccessControlMaxAge
[src]
impl Debug for AccessControlMaxAge
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AccessControlMaxAge
[src]
impl PartialEq for AccessControlMaxAge
fn eq(&self, other: &AccessControlMaxAge) -> bool
[src]
fn eq(&self, other: &AccessControlMaxAge) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AccessControlMaxAge) -> bool
[src]
fn ne(&self, other: &AccessControlMaxAge) -> bool
This method tests for !=
.
impl Deref for AccessControlMaxAge
[src]
impl Deref for AccessControlMaxAge
type Target = u32
The resulting type after dereferencing.
fn deref(&self) -> &u32
[src]
fn deref(&self) -> &u32
Dereferences the value.
impl DerefMut for AccessControlMaxAge
[src]
impl DerefMut for AccessControlMaxAge
impl Header for AccessControlMaxAge
[src]
impl Header for AccessControlMaxAge
fn header_name() -> &'static str
[src]
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
[src]
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
Parse a header from a raw stream of bytes. Read more
impl HeaderFormat for AccessControlMaxAge
[src]
impl HeaderFormat for AccessControlMaxAge
fn fmt_header(&self, f: &mut Formatter) -> Result
[src]
fn fmt_header(&self, f: &mut Formatter) -> Result
Format a header to be output into a TcpStream. Read more
impl Display for AccessControlMaxAge
[src]
impl Display for AccessControlMaxAge
Auto Trait Implementations
impl Send for AccessControlMaxAge
impl Send for AccessControlMaxAge
impl Sync for AccessControlMaxAge
impl Sync for AccessControlMaxAge