pub trait GenericRequest {
// Required methods
fn headers(&self) -> &HeaderMap<HeaderValue>;
fn url(&self) -> &str;
fn method(&self) -> &str;
}
Expand description
Generic request type. Allows you to pass any reqwest::Request
-like object.
You’re gonna need to wrap whatever client’s Request
type you’re using in your own
type, as the orphan rules won’t allow you to impl
this trait.
Required Methods§
Sourcefn headers(&self) -> &HeaderMap<HeaderValue>
fn headers(&self) -> &HeaderMap<HeaderValue>
Headers
Implementations on Foreign Types§
Source§impl GenericRequest for Request
Available on crate feature client-reqwest
only.
impl GenericRequest for Request
Available on crate feature
client-reqwest
only.