[][src]Trait http_cache_semantics::ResponseLike

pub trait ResponseLike {
    fn status(&self) -> StatusCode;
fn headers(&self) -> &HeaderMap; }

Allows using either Response or response::Parts, or your own newtype.

Required methods

fn status(&self) -> StatusCode

Same as res.status()

fn headers(&self) -> &HeaderMap

Same as res.headers()

Loading content...

Implementations on Foreign Types

impl<Body> ResponseLike for Response<Body>[src]

Loading content...

Implementors

Loading content...