Enum reqwest::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);Run

Variants

The value 100-continue.

Trait Implementations

impl Debug for Expect

Formats the value using the given formatter.

impl PartialEq<Expect> for Expect

impl Header for Expect

Returns the name of the header field this belongs to. Read more

Parse a header from a raw stream of bytes. Read more

impl Clone for Expect

impl Copy for Expect

impl HeaderFormat for Expect

Format a header to be output into a TcpStream. Read more