Struct iron::headers::ContentEncoding [-] [+] [src]

pub struct ContentEncoding(pub Vec<Encoding>);

Content-Encoding header, defined in RFC7231

The Content-Encoding header field indicates what content codings have been applied to the representation, beyond those inherent in the media type, and thus what decoding mechanisms have to be applied in order to obtain data in the media type referenced by the Content-Type header field. Content-Encoding is primarily used to allow a representation's data to be compressed without losing the identity of its underlying media type.

ABNF

Content-Encoding = 1#content-coding

Example values

Trait Implementations

impl Deref for ContentEncoding

type Target = Vec<Encoding>

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

impl DerefMut for ContentEncoding

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

impl Header for ContentEncoding

fn header_name() -> &'static str

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

impl HeaderFormat for ContentEncoding

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

impl Display for ContentEncoding

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

Derived Implementations

impl PartialEq<ContentEncoding> for ContentEncoding

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

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

impl Debug for ContentEncoding

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

impl Clone for ContentEncoding

fn clone(&self) -> ContentEncoding

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