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

pub struct AcceptEncoding(pub Vec<QualityItem<Encoding>>);

Accept-Encoding header, defined in RFC7231

The Accept-Encoding header field can be used by user agents to indicate what response content-codings are acceptable in the response. An identity token is used as a synonym for "no encoding" in order to communicate when no encoding is preferred.

ABNF

Accept-Encoding  = #( codings [ weight ] )
codings          = content-coding / "identity" / "*"

Example values

Trait Implementations

impl Deref for AcceptEncoding

type Target = Vec<QualityItem<Encoding>>

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

impl DerefMut for AcceptEncoding

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

impl Header for AcceptEncoding

fn header_name() -> &'static str

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

impl HeaderFormat for AcceptEncoding

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

impl Display for AcceptEncoding

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

Derived Implementations

impl PartialEq for AcceptEncoding

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

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

impl Debug for AcceptEncoding

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

impl Clone for AcceptEncoding

fn clone(&self) -> AcceptEncoding

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