Enum hyper::header::Vary [-] [+] [src]

pub enum Vary {
    Any,
    Headers(Vec<UniCase<String>>),
}

The Allow header. See also https://tools.ietf.org/html/rfc7231#section-7.1.4

Variants

Any

This corresponds to '*'.

Headers

The header field names which will influence the response representation.

Trait Implementations

impl Header for Vary

fn header_name() -> &'static str

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

impl HeaderFormat for Vary

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

impl Header for Vary

fn header_name() -> &'static str

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

impl HeaderFormat for Vary

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

Derived Implementations

impl Debug for Vary

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

impl PartialEq for Vary

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

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

impl Clone for Vary

fn clone(&self) -> Vary

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

impl Debug for Vary

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

impl PartialEq for Vary

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

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

impl Clone for Vary

fn clone(&self) -> Vary

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