Struct headers_ext::AccessControlAllowMethods[][src]

pub struct AccessControlAllowMethods(_);

Access-Control-Allow-Methods header, part of CORS

The Access-Control-Allow-Methods header indicates, as part of the response to a preflight request, which methods can be used during the actual request.

ABNF

Access-Control-Allow-Methods: "Access-Control-Allow-Methods" ":" #Method

Example values

  • PUT, DELETE, XMODIFY

Examples

extern crate http;
use http::Method;
use headers::AccessControlAllowMethods;

let allow_methods = vec![Method::GET, Method::PUT]
    .into_iter()
    .collect::<AccessControlAllowMethods>();

Methods

impl AccessControlAllowMethods
[src]

Returns an iterator over Methods contained within.

Trait Implementations

impl Clone for AccessControlAllowMethods
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AccessControlAllowMethods
[src]

Formats the value using the given formatter. Read more

impl PartialEq for AccessControlAllowMethods
[src]

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

This method tests for !=.

impl FromIterator<Method> for AccessControlAllowMethods
[src]

Creates a value from an iterator. Read more

Auto Trait Implementations