Struct viz::prelude::http::headers::AccessControlAllowMethods [−][src]
pub struct AccessControlAllowMethods(_);
Expand description
Access-Control-Allow-Methods
header, part of
CORS
The Access-Control-Allow-Methods
header indicates, as part of the
response to a preflight request, which methods can be used during the
actual request.
ABNF
Access-Control-Allow-Methods: "Access-Control-Allow-Methods" ":" #Method
Example values
PUT, DELETE, XMODIFY
Examples
extern crate http; use http::Method; use headers::AccessControlAllowMethods; let allow_methods = vec![Method::GET, Method::PUT] .into_iter() .collect::<AccessControlAllowMethods>();
Implementations
Trait Implementations
pub fn from_iter<I>(iter: I) -> AccessControlAllowMethods where
I: IntoIterator<Item = Method>,
[src]
pub fn from_iter<I>(iter: I) -> AccessControlAllowMethods where
I: IntoIterator<Item = Method>,
[src]Creates a value from an iterator. Read more
The name of this header.
pub fn decode<'i, I>(values: &mut I) -> Result<AccessControlAllowMethods, Error> where
I: Iterator<Item = &'i HeaderValue>,
[src]
pub fn decode<'i, I>(values: &mut I) -> Result<AccessControlAllowMethods, Error> where
I: Iterator<Item = &'i HeaderValue>,
[src]Decode this type from an iterator of HeaderValue
s.
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 AccessControlAllowMethods
impl Send for AccessControlAllowMethods
impl Sync for AccessControlAllowMethods
impl Unpin for AccessControlAllowMethods
impl UnwindSafe for AccessControlAllowMethods
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V