Struct headers_ext::AccessControlAllowMethods [−][src]
pub struct AccessControlAllowMethods(_);
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>();
Methods
impl AccessControlAllowMethods
[src]
impl AccessControlAllowMethods
pub fn iter<'a>(
&'a self
) -> impl Iterator<Item = Method> + 'a
[src]
pub fn iter<'a>(
&'a self
) -> impl Iterator<Item = Method> + 'a
Returns an iterator over Method
s contained within.
Trait Implementations
impl Clone for AccessControlAllowMethods
[src]
impl Clone for AccessControlAllowMethods
fn clone(&self) -> AccessControlAllowMethods
[src]
fn clone(&self) -> AccessControlAllowMethods
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 AccessControlAllowMethods
[src]
impl Debug for AccessControlAllowMethods
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 AccessControlAllowMethods
[src]
impl PartialEq for AccessControlAllowMethods
fn eq(&self, other: &AccessControlAllowMethods) -> bool
[src]
fn eq(&self, other: &AccessControlAllowMethods) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AccessControlAllowMethods) -> bool
[src]
fn ne(&self, other: &AccessControlAllowMethods) -> bool
This method tests for !=
.
impl FromIterator<Method> for AccessControlAllowMethods
[src]
impl FromIterator<Method> for AccessControlAllowMethods
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Method>,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Method>,
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for AccessControlAllowMethods
impl Send for AccessControlAllowMethods
impl Sync for AccessControlAllowMethods
impl Sync for AccessControlAllowMethods