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

pub struct AccessControlAllowMethods(pub Vec<Method>);

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

Trait Implementations

impl Deref for AccessControlAllowMethods

type Target = Vec<Method>

fn deref<'a>(&'a self) -> &'a Vec<Method>

impl DerefMut for AccessControlAllowMethods

fn deref_mut<'a>(&'a mut self) -> &'a mut Vec<Method>

impl Header for AccessControlAllowMethods

fn header_name() -> &'static str

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

impl HeaderFormat for AccessControlAllowMethods

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

impl Display for AccessControlAllowMethods

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

Derived Implementations

impl PartialEq for AccessControlAllowMethods

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

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

impl Debug for AccessControlAllowMethods

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

impl Clone for AccessControlAllowMethods

fn clone(&self) -> AccessControlAllowMethods

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