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()

Loading content...

Implementations on Foreign Types

impl<Body> RequestLike for Request<Body>[src]

fn uri(&self) -> Uri[src]

fn is_same_uri(&self, other: &Uri) -> bool[src]

fn method(&self) -> &Method[src]

fn headers(&self) -> &HeaderMap[src]

impl RequestLike for Parts[src]

fn uri(&self) -> Uri[src]

fn is_same_uri(&self, other: &Uri) -> bool[src]

fn method(&self) -> &Method[src]

fn headers(&self) -> &HeaderMap[src]

Loading content...

Implementors

Loading content...