Struct hyper::header::common::transfer_encoding::TransferEncoding [-]  [+] [src]

pub struct TransferEncoding(pub Vec<Encoding>);

The Transfer-Encoding header.

This header describes the encoding of the message body. It can be comma-separated, including multiple encodings.

Transfer-Encoding: gzip, chunked

According to the spec, if a Content-Length header is not included, this header should include chunked as the last encoding.

The implementation uses a vector of Encoding values.

Trait Implementations

impl Deref for TransferEncoding

type Target = Vec<Encoding>

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

impl DerefMut for TransferEncoding

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

impl Header for TransferEncoding

fn header_name(_: Option<TransferEncoding>) -> &'static str

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

impl HeaderFormat for TransferEncoding

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

Derived Implementations

impl Show for TransferEncoding

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

impl PartialEq for TransferEncoding

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

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

impl Clone for TransferEncoding

fn clone(&self) -> TransferEncoding

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