Struct salvo::http::headers::Expect [−][src]
pub struct Expect(_);
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 headers::Expect;
let expect = Expect::CONTINUE;
Implementations
Trait Implementations
The name of this header.
Decode this type from an iterator of HeaderValue
s.
Auto Trait Implementations
impl RefUnwindSafe for Expect
impl UnwindSafe for Expect
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more