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 Copy for Expect
[src]
impl Clone for Expect
[src]
fn clone(&self) -> Expect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Expect
[src]
fn eq(&self, __arg_0: &Expect) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Debug for Expect
[src]
impl Header for Expect
[src]
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &[Vec<u8>]) -> Result<Expect>
Parse a header from a raw stream of bytes. Read more
impl HeaderFormat for Expect
[src]
fn fmt_header(&self, f: &mut Formatter) -> Result
Format a header to be output into a TcpStream. Read more