Struct 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.
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