Struct oauth_client::DefaultRequestBuilder
source · [−]pub struct DefaultRequestBuilder { /* private fields */ }
Available on crate feature
reqwest-blocking
only.Expand description
Default one to use if you’re not using a custom HTTP Client and are ok with bundling reqwest
Trait Implementations
sourceimpl Debug for DefaultRequestBuilder
impl Debug for DefaultRequestBuilder
sourceimpl RequestBuilder for DefaultRequestBuilder
impl RequestBuilder for DefaultRequestBuilder
sourcefn new(method: Method, url: &str, _: &Self::ClientBuilder) -> Self
fn new(method: Method, url: &str, _: &Self::ClientBuilder) -> Self
If the url is wrong then it will fail only during send
type ReturnValue = String
type ReturnValue = String
Generic return value allows you to return a future, allowing the possibility
of using this library in async
environments. Read more
type ClientBuilder = ()
type ClientBuilder = ()
This is useful for reusing existing connection pools.
sourcefn header<K, V>(self, key: K, val: V) -> Self where
HeaderName: TryFrom<K>,
HeaderValue: TryFrom<V>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
fn header<K, V>(self, key: K, val: V) -> Self where
HeaderName: TryFrom<K>,
HeaderValue: TryFrom<V>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
Set a header
sourcefn send(self) -> Result<Self::ReturnValue, Error>
fn send(self) -> Result<Self::ReturnValue, Error>
A build
-like function that also sends the request
Auto Trait Implementations
impl !RefUnwindSafe for DefaultRequestBuilder
impl Send for DefaultRequestBuilder
impl !Sync for DefaultRequestBuilder
impl Unpin for DefaultRequestBuilder
impl !UnwindSafe for DefaultRequestBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more