Struct headers_ext::AccessControlRequestMethod[][src]

pub struct AccessControlRequestMethod(_);

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

impl Clone for AccessControlRequestMethod
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AccessControlRequestMethod
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AccessControlRequestMethod
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for AccessControlRequestMethod
[src]

impl Hash for AccessControlRequestMethod
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Header for AccessControlRequestMethod
[src]

NAME: &'static HeaderName = &::http::header::ACCESS_CONTROL_REQUEST_METHOD

The name of this header.

Decode this type from a HeaderValue.

Encode this type to a HeaderMap. Read more

impl From<Method> for AccessControlRequestMethod
[src]

Performs the conversion.

Auto Trait Implementations