Struct salvo::http::headers::AccessControlRequestMethod [−][src]
pub struct AccessControlRequestMethod(_);
Expand description
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
Performs the conversion.
Performs the conversion.
The name of this header.
pub fn decode<'i, I>(
values: &mut I
) -> Result<AccessControlRequestMethod, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(
values: &mut I
) -> Result<AccessControlRequestMethod, Error> where
I: Iterator<Item = &'i HeaderValue>,
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 AccessControlRequestMethod
impl Send for AccessControlRequestMethod
impl Sync for AccessControlRequestMethod
impl Unpin for AccessControlRequestMethod
impl UnwindSafe for AccessControlRequestMethod
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more