Struct headers_ext::Te[][src]

pub struct Te(_);

TE header, defined in RFC7230

As RFC7230 states, "The "TE" header field in a request indicates what transfer codings, besides chunked, the client is willing to accept in response, and whether or not the client is willing to accept trailer fields in a chunked transfer coding."

For HTTP/1.1 compliant clients chunked transfer codings are assumed to be acceptable and so should never appear in this header.

ABNF

TE        = "TE" ":" #( t-codings )
t-codings = "trailers" | ( transfer-extension [ accept-params ] )

Example values

  • trailers
  • trailers, deflate;q=0.5
  • ``

Examples

Methods

impl Te
[src]

Create a TE: trailers header.

Trait Implementations

impl Clone for Te
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Te
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Te
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Te

impl Sync for Te