Struct hyper::header::TransferEncoding [] [src]

pub struct TransferEncoding(pub Vec<Encoding>);

Transfer-Encoding header, defined in RFC7230

The Transfer-Encoding header field lists the transfer coding names corresponding to the sequence of transfer codings that have been (or will be) applied to the payload body in order to form the message body.

ABNF

Transfer-Encoding = 1#transfer-coding

Example values

Example

use hyper::header::{Headers, TransferEncoding, Encoding};
 
let mut headers = Headers::new();
headers.set(
    TransferEncoding(vec![
        Encoding::Gzip,
        Encoding::Chunked,
    ])
);