Trait http_cache_semantics::ResponseLike
source · pub trait ResponseLike {
// Required methods
fn status(&self) -> StatusCode;
fn headers(&self) -> &HeaderMap;
}
Expand description
Allows using either Response
or response::Parts
, or your own newtype.
Required Methods§
sourcefn status(&self) -> StatusCode
fn status(&self) -> StatusCode
Same as res.status()