[][src]Struct headers::Te

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]

pub fn trailers() -> Self[src]

Create a TE: trailers header.

Trait Implementations

impl Clone for Te[src]

impl Debug for Te[src]

impl Header for Te[src]

impl PartialEq<Te> for Te[src]

impl StructuralPartialEq for Te[src]

Auto Trait Implementations

impl RefUnwindSafe for Te

impl Send for Te

impl Sync for Te

impl Unpin for Te

impl UnwindSafe for Te

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.