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

pub struct Allow(pub Vec<Method>);

Allow header, defined in RFC7231

The Allow header field lists the set of methods advertised as supported by the target resource. The purpose of this field is strictly to inform the recipient of valid request methods associated with the resource.

ABNF

Allow = #method

Example values

Trait Implementations

impl Deref for Allow

type Target = Vec<Method>

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

impl DerefMut for Allow

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

impl Header for Allow

fn header_name() -> &'static str

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

impl HeaderFormat for Allow

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

impl Display for Allow

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

Derived Implementations

impl PartialEq for Allow

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

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

impl Debug for Allow

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

impl Clone for Allow

fn clone(&self) -> Allow

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