Struct headers_ext::Expect[][src]

pub struct Expect(_);

The Expect header.

The "Expect" header field in a request indicates a certain set of behaviors (expectations) that need to be supported by the server in order to properly handle this request. The only such expectation defined by this specification is 100-continue.

Expect = "100-continue"

Example

use headers::Expect;

let expect = Expect::CONTINUE;

Methods

impl Expect
[src]

CONTINUE: Expect = Expect(())

"100-continue"

Trait Implementations

impl Clone for Expect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Expect
[src]

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

This method tests for !=.

impl Header for Expect
[src]

NAME: &'static HeaderName = &::http::header::EXPECT

The name of this header.

Decode this type from a HeaderValue.

Encode this type to a HeaderMap. Read more

impl Debug for Expect
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Expect

impl Sync for Expect