Struct http_types::other::Expect [−][src]
pub struct Expect { /* fields omitted */ }
Expand description
HTTP Expect
header
Specifications
Examples
use http_types::Response; use http_types::other::Expect; let expect = Expect::new(); let mut res = Response::new(200); expect.apply(&mut res); let expect = Expect::from_headers(res)?.unwrap(); assert_eq!(expect, Expect::new());
Implementations
Create an instance of Expect
from a Headers
instance.
Insert a HeaderName
+ HeaderValue
pair into a Headers
instance.
Get the HeaderName
.
Get the HeaderValue
.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Iter = IntoIter<HeaderValue>
type Iter = IntoIter<HeaderValue>
Returned iterator over header values which this type may correspond to.
Converts this object to an iterator of resolved HeaderValues
.