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;
}Allows using either Request or request::Parts, or your own newtype.
Required methods
fn uri(&self) -> Uri[src]
Same as req.uri().clone()
fn is_same_uri(&self, other: &Uri) -> bool[src]
Whether the effective request URI matches the other URI
It can be naive string comparison, nothing fancy
fn method(&self) -> &Method[src]
Same as req.method()
fn headers(&self) -> &HeaderMap[src]
Same as req.headers()
Implementations on Foreign Types
impl<Body> RequestLike for Request<Body>[src]
impl<Body> RequestLike for Request<Body>[src]impl RequestLike for Parts[src]
impl RequestLike for Parts[src]