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
Trait Implementations§
source§impl Clone for AccessControlMaxAge
impl Clone for AccessControlMaxAge
source§fn clone(&self) -> AccessControlMaxAge
fn clone(&self) -> AccessControlMaxAge
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccessControlMaxAge
impl Debug for AccessControlMaxAge
source§impl Deref for AccessControlMaxAge
impl Deref for AccessControlMaxAge
source§impl DerefMut for AccessControlMaxAge
impl DerefMut for AccessControlMaxAge
source§impl Display for AccessControlMaxAge
impl Display for AccessControlMaxAge
§impl From<AccessControlMaxAge> for Header<'static>
impl From<AccessControlMaxAge> for Header<'static>
§fn from(header: AccessControlMaxAge) -> Header<'static>
fn from(header: AccessControlMaxAge) -> Header<'static>
Converts to this type from the input type.
source§impl Header for AccessControlMaxAge
impl Header for AccessControlMaxAge
source§fn header_name() -> &'static str
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
source§fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlMaxAge, Error>
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlMaxAge, Error>
Parse a header from a raw stream of bytes. Read more
source§impl HeaderFormat for AccessControlMaxAge
impl HeaderFormat for AccessControlMaxAge
source§impl PartialEq for AccessControlMaxAge
impl PartialEq for AccessControlMaxAge
impl StructuralPartialEq for AccessControlMaxAge
Auto Trait Implementations§
impl Freeze for AccessControlMaxAge
impl RefUnwindSafe for AccessControlMaxAge
impl Send for AccessControlMaxAge
impl Sync for AccessControlMaxAge
impl Unpin for AccessControlMaxAge
impl UnwindSafe for AccessControlMaxAge
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)