Struct headers::AccessControlRequestMethod
source · pub struct AccessControlRequestMethod(/* private fields */);
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§
source§impl Clone for AccessControlRequestMethod
impl Clone for AccessControlRequestMethod
source§fn clone(&self) -> AccessControlRequestMethod
fn clone(&self) -> AccessControlRequestMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccessControlRequestMethod
impl Debug for AccessControlRequestMethod
source§impl From<AccessControlRequestMethod> for Method
impl From<AccessControlRequestMethod> for Method
source§fn from(method: AccessControlRequestMethod) -> Method
fn from(method: AccessControlRequestMethod) -> Method
Converts to this type from the input type.
source§impl From<Method> for AccessControlRequestMethod
impl From<Method> for AccessControlRequestMethod
source§fn from(method: Method) -> AccessControlRequestMethod
fn from(method: Method) -> AccessControlRequestMethod
Converts to this type from the input type.
source§impl Hash for AccessControlRequestMethod
impl Hash for AccessControlRequestMethod
source§impl Header for AccessControlRequestMethod
impl Header for AccessControlRequestMethod
impl Eq for AccessControlRequestMethod
impl StructuralPartialEq for AccessControlRequestMethod
Auto Trait Implementations§
impl Freeze for AccessControlRequestMethod
impl RefUnwindSafe for AccessControlRequestMethod
impl Send for AccessControlRequestMethod
impl Sync for AccessControlRequestMethod
impl Unpin for AccessControlRequestMethod
impl UnwindSafe for AccessControlRequestMethod
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)