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§
sourcefn header(&self, header: &Header) -> Option<HeaderValue>
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§
sourcefn has_header(&self, header: &Header) -> bool
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.