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\" \":\" Method
Example values
GET
Examples
use hyper::header::{Headers, AccessControlRequestMethod}; use hyper::method::Method; let mut headers = Headers::new(); headers.set(AccessControlRequestMethod(Method::Get));
Methods from Deref<Target = Method>
pub fn safe(&self) -> bool
[src]
pub fn safe(&self) -> bool
[src]Whether a method is considered “safe”, meaning the request is essentially read-only.
See the spec for more words.
pub fn idempotent(&self) -> bool
[src]
pub fn idempotent(&self) -> bool
[src]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
impl Clone for AccessControlRequestMethod
[src]
impl Clone for AccessControlRequestMethod
[src]pub fn clone(&self) -> AccessControlRequestMethod
[src]
pub fn clone(&self) -> AccessControlRequestMethod
[src]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
[src]impl Deref for AccessControlRequestMethod
[src]
impl Deref for AccessControlRequestMethod
[src]impl DerefMut for AccessControlRequestMethod
[src]
impl DerefMut for AccessControlRequestMethod
[src]impl Display for AccessControlRequestMethod
[src]
impl Display for AccessControlRequestMethod
[src]impl From<AccessControlRequestMethod> for Header<'static>
[src]
impl From<AccessControlRequestMethod> for Header<'static>
[src]fn from(header: AccessControlRequestMethod) -> Header<'static>
[src]
fn from(header: AccessControlRequestMethod) -> Header<'static>
[src]Performs the conversion.
impl Header for AccessControlRequestMethod
[src]
impl Header for AccessControlRequestMethod
[src]pub fn header_name() -> &'static str
[src]
pub fn header_name() -> &'static str
[src]Returns the name of the header field this belongs to. Read more
impl PartialEq<AccessControlRequestMethod> for AccessControlRequestMethod
[src]
impl PartialEq<AccessControlRequestMethod> for AccessControlRequestMethod
[src]pub fn eq(&self, other: &AccessControlRequestMethod) -> bool
[src]
pub fn eq(&self, other: &AccessControlRequestMethod) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &AccessControlRequestMethod) -> bool
[src]
pub fn ne(&self, other: &AccessControlRequestMethod) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for AccessControlRequestMethod
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
[src]
impl<T> IntoCollection<T> for T
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> HeaderClone for T where
T: Sealed,
[src]
T: Sealed,