Trait http_cache_semantics::RequestLike
source · pub trait RequestLike {
// Required methods
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§
sourcefn is_same_uri(&self, other: &Uri) -> bool
fn is_same_uri(&self, other: &Uri) -> bool
Whether the effective request URI matches the other URI
It can be naive string comparison, nothing fancy