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 AccessControlAllowMethodspub fn iter<'a>(
&'a self
) -> impl Iterator<Item = Method> + 'a[src]
pub fn iter<'a>(
&'a self
) -> impl Iterator<Item = Method> + 'aReturns an iterator over Methods contained within.
Trait Implementations
impl Clone for AccessControlAllowMethods[src]
impl Clone for AccessControlAllowMethodsfn clone(&self) -> AccessControlAllowMethods[src]
fn clone(&self) -> AccessControlAllowMethodsReturns 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 AccessControlAllowMethodsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for AccessControlAllowMethods[src]
impl PartialEq for AccessControlAllowMethodsfn eq(&self, other: &AccessControlAllowMethods) -> bool[src]
fn eq(&self, other: &AccessControlAllowMethods) -> boolThis 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) -> boolThis method tests for !=.
impl FromIterator<Method> for AccessControlAllowMethods[src]
impl FromIterator<Method> for AccessControlAllowMethodsfn 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 AccessControlAllowMethodsimpl Sync for AccessControlAllowMethods
impl Sync for AccessControlAllowMethods