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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".