Trait oauth_client::GenericRequest
source · [−]pub trait GenericRequest {
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
fn headers(&self) -> &HeaderMap<HeaderValue>
fn headers(&self) -> &HeaderMap<HeaderValue>
Headers
Implementations on Foreign Types
sourceimpl GenericRequest for Request
Available on crate feature client-reqwest
only.
impl GenericRequest for Request
Available on crate feature
client-reqwest
only.