Enum hyper::header::Expect [] [src]

pub enum Expect {
    Continue,
}

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 hyper::header::{Headers, Expect};
let mut headers = Headers::new();
headers.set(Expect::Continue);

Variants

Continue

The value 100-continue.

Trait Implementations

impl Header for Expect

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<Expect>

impl HeaderFormat for Expect

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

Derived Implementations

impl Debug for Expect

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

impl PartialEq for Expect

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

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Clone for Expect

fn clone(&self) -> Expect

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

impl Copy for Expect