Trait http_cache_semantics::RequestLike[][src]

pub trait RequestLike {
    fn uri(&self) -> Uri;
fn is_same_uri(&self, other: &Uri) -> bool;
fn method(&self) -> &Method;
fn headers(&self) -> &HeaderMap; }
Expand description

Allows using either Request or request::Parts, or your own newtype.

Required methods

Same as req.uri().clone()

Whether the effective request URI matches the other URI

It can be naive string comparison, nothing fancy

Same as req.method()

Same as req.headers()

Implementations on Foreign Types

Implementors