Trait http_cache_semantics::ResponseLike [−][src]
pub trait ResponseLike {
fn status(&self) -> StatusCode;
fn headers(&self) -> &HeaderMap;
}
Expand description
Allows using either Response
or response::Parts
, or your own newtype.
Required methods
fn status(&self) -> StatusCode
fn status(&self) -> StatusCode
Same as res.status()