Enum hyperx::header::Expect [−][src]
pub enum Expect {
Continue,
}
Expand description
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 hyperx::header::{Expect, TypedHeaders};
let mut headers = http::HeaderMap::new();
headers.encode(&Expect::Continue);
Variants
The value 100-continue
.
Trait Implementations
The HeaderName
from the http crate for this header.
Auto Trait Implementations
impl RefUnwindSafe for Expect
impl UnwindSafe for Expect
Blanket Implementations
Mutably borrows from an owned value. Read more