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]
impl Expect
Trait Implementations
impl Clone for Expect
[src]
impl Clone for Expect
fn clone(&self) -> Expect
[src]
fn clone(&self) -> Expect
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Expect
[src]
impl PartialEq for Expect
fn eq(&self, other: &Expect) -> bool
[src]
fn eq(&self, other: &Expect) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Expect) -> bool
[src]
fn ne(&self, other: &Expect) -> bool
This method tests for !=
.
impl Header for Expect
[src]
impl Header for Expect
const NAME: &'static HeaderName
NAME: &'static HeaderName = &::http::header::EXPECT
The name of this header.
fn decode(values: &mut Values) -> Option<Expect>
[src]
fn decode(values: &mut Values) -> Option<Expect>
Decode this type from a HeaderValue
.
fn encode(&self, values: &mut ToValues)
[src]
fn encode(&self, values: &mut ToValues)
Encode this type to a HeaderMap
. Read more
impl Debug for Expect
[src]
impl Debug for Expect