Struct twilio_async::header::AccessControlRequestMethod [−][src]
pub struct AccessControlRequestMethod(pub Method);
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; 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) -> boolWhether 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) -> boolWhether a method is considered "idempotent", meaning the request has the same result if executed multiple times.
See the spec for more words.
Trait Implementations
impl PartialEq<AccessControlRequestMethod> for AccessControlRequestMethod[src]
impl PartialEq<AccessControlRequestMethod> for AccessControlRequestMethodfn eq(&self, other: &AccessControlRequestMethod) -> bool[src]
fn eq(&self, other: &AccessControlRequestMethod) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &AccessControlRequestMethod) -> bool[src]
fn ne(&self, other: &AccessControlRequestMethod) -> boolThis method tests for !=.
impl Clone for AccessControlRequestMethod[src]
impl Clone for AccessControlRequestMethodfn clone(&self) -> AccessControlRequestMethod[src]
fn clone(&self) -> AccessControlRequestMethodReturns 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)Performs copy-assignment from source. Read more
impl DerefMut for AccessControlRequestMethod[src]
impl DerefMut for AccessControlRequestMethodimpl Debug for AccessControlRequestMethod[src]
impl Debug for AccessControlRequestMethodfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Header for AccessControlRequestMethod[src]
impl Header for AccessControlRequestMethodfn header_name() -> &'static str[src]
fn header_name() -> &'static strReturns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<AccessControlRequestMethod, Error>[src]
fn parse_header(raw: &Raw) -> Result<AccessControlRequestMethod, Error>Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>Format a header to outgoing stream. Read more
impl Display for AccessControlRequestMethod[src]
impl Display for AccessControlRequestMethodfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Deref for AccessControlRequestMethod[src]
impl Deref for AccessControlRequestMethodAuto Trait Implementations
impl Send for AccessControlRequestMethod
impl Send for AccessControlRequestMethodimpl Sync for AccessControlRequestMethod
impl Sync for AccessControlRequestMethod