Struct headers_ext::AccessControlRequestMethod [−][src]
pub struct AccessControlRequestMethod(_);
Access-Control-Request-Method
header, part of
CORS
The Access-Control-Request-Method
header indicates which method will be
used in the actual request as part of the preflight request.
ABNF
Access-Control-Request-Method: \"Access-Control-Request-Method\" \":\" Method
Example values
GET
Examples
extern crate http; use headers::AccessControlRequestMethod; use http::Method; let req_method = AccessControlRequestMethod::from(Method::GET);
Trait Implementations
impl Clone for AccessControlRequestMethod
[src]
impl Clone for AccessControlRequestMethod
fn clone(&self) -> AccessControlRequestMethod
[src]
fn clone(&self) -> AccessControlRequestMethod
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 AccessControlRequestMethod
[src]
impl Debug for AccessControlRequestMethod
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 AccessControlRequestMethod
[src]
impl PartialEq for AccessControlRequestMethod
fn eq(&self, other: &AccessControlRequestMethod) -> bool
[src]
fn eq(&self, other: &AccessControlRequestMethod) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AccessControlRequestMethod) -> bool
[src]
fn ne(&self, other: &AccessControlRequestMethod) -> bool
This method tests for !=
.
impl Eq for AccessControlRequestMethod
[src]
impl Eq for AccessControlRequestMethod
impl Hash for AccessControlRequestMethod
[src]
impl Hash for AccessControlRequestMethod
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Header for AccessControlRequestMethod
[src]
impl Header for AccessControlRequestMethod
const NAME: &'static HeaderName
NAME: &'static HeaderName = &::http::header::ACCESS_CONTROL_REQUEST_METHOD
The name of this header.
fn decode(values: &mut Values) -> Option<Self>
[src]
fn decode(values: &mut Values) -> Option<Self>
Decode this type from a HeaderValue
.
fn encode(&self, values: &mut ToValues)
[src]
fn encode(&self, values: &mut ToValues)
Encode this type to a HeaderMap
. Read more
impl From<Method> for AccessControlRequestMethod
[src]
impl From<Method> for AccessControlRequestMethod
fn from(method: Method) -> AccessControlRequestMethod
[src]
fn from(method: Method) -> AccessControlRequestMethod
Performs the conversion.
Auto Trait Implementations
impl Send for AccessControlRequestMethod
impl Send for AccessControlRequestMethod
impl Sync for AccessControlRequestMethod
impl Sync for AccessControlRequestMethod