[][src]Trait http_sig::RequestLike

pub trait RequestLike {
    fn header(&self, header: &Header) -> Option<HeaderValue>;

    fn has_header(&self, header: &Header) -> bool { ... }
}

Base trait for all request types

Required methods

fn header(&self, header: &Header) -> Option<HeaderValue>

Returns an existing header on the request. This method must reflect changes made be the ClientRequestLike::set_header method, with the possible exception of the Authorization header itself.

Loading content...

Provided methods

fn has_header(&self, header: &Header) -> bool

Returns true if this request contains a value for the specified header. If this returns true, following requests to header() for the same name must return a value.

Loading content...

Implementations on Foreign Types

impl<'_, T: RequestLike> RequestLike for &'_ T[src]

impl RequestLike for Request[src]

impl RequestLike for Request[src]

impl RequestLike for Request[src]

Loading content...

Implementors

impl RequestLike for MockRequest[src]

Loading content...