Trait http_sig::RequestLike

source ·
pub trait RequestLike {
    // Required method
    fn header(&self, header: &Header) -> Option<HeaderValue>;

    // Provided method
    fn has_header(&self, header: &Header) -> bool { ... }
}
Expand description

Base trait for all request types

Required Methods§

source

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.

Provided Methods§

source

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.

Implementations on Foreign Types§

source§

impl RequestLike for Request

source§

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

source§

impl RequestLike for Request

source§

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

source§

impl<T: RequestLike> RequestLike for &T

source§

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

source§

impl RequestLike for Request

source§

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

Implementors§