Struct hyper::header::AccessControlAllowMethods [-] [+] [src]

pub struct AccessControlAllowMethods(pub Vec<Method>);

The Access-Control-Allow-Methods response 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.

Spec: www.w3.org/TR/cors/#access-control-allow-methods-response-header

Trait Implementations

impl Header for AccessControlAllowMethods

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<AccessControlAllowMethods>

impl HeaderFormat for AccessControlAllowMethods

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Header for AccessControlAllowMethods

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<AccessControlAllowMethods>

impl HeaderFormat for AccessControlAllowMethods

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Header for AccessControlAllowMethods

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<AccessControlAllowMethods>

impl HeaderFormat for AccessControlAllowMethods

fn fmt_header(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for AccessControlAllowMethods

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for AccessControlAllowMethods

fn eq(&self, __arg_0: &AccessControlAllowMethods) -> bool

fn ne(&self, __arg_0: &AccessControlAllowMethods) -> bool

impl Clone for AccessControlAllowMethods

fn clone(&self) -> AccessControlAllowMethods

fn clone_from(&mut self, source: &Self)

impl Debug for AccessControlAllowMethods

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for AccessControlAllowMethods

fn eq(&self, __arg_0: &AccessControlAllowMethods) -> bool

fn ne(&self, __arg_0: &AccessControlAllowMethods) -> bool

impl Clone for AccessControlAllowMethods

fn clone(&self) -> AccessControlAllowMethods

fn clone_from(&mut self, source: &Self)

impl Debug for AccessControlAllowMethods

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for AccessControlAllowMethods

fn eq(&self, __arg_0: &AccessControlAllowMethods) -> bool

fn ne(&self, __arg_0: &AccessControlAllowMethods) -> bool

impl Clone for AccessControlAllowMethods

fn clone(&self) -> AccessControlAllowMethods

fn clone_from(&mut self, source: &Self)