Struct rocket_http::hyper::header::AccessControlRequestMethod [−][src]
pub struct AccessControlRequestMethod(pub Method);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\" \":\" MethodExample values
GET
Examples
use hyper::header::{Headers, AccessControlRequestMethod};
use hyper::method::Method;
let mut headers = Headers::new();
headers.set(AccessControlRequestMethod(Method::Get));Tuple Fields
0: MethodMethods from Deref<Target = Method>
Whether a method is considered “safe”, meaning the request is essentially read-only.
See the spec for more words.
Whether a method is considered “idempotent”, meaning the request has the same result is executed multiple times.
See the spec for more words.
Trait Implementations
Performs the conversion.
Returns the name of the header field this belongs to. Read more
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