pub struct ReqwestClient { /* private fields */ }Available on crate feature
reqwest only.Expand description
The HttpClient the SDK ships, over reqwest with rustls and HTTP/2. This is what a
client gets when nothing else is supplied.
It never follows a redirect, whatever it was built from: the SDK does that itself.
Implementations§
Source§impl ReqwestClient
impl ReqwestClient
Sourcepub fn with_timeout(timeout: Duration) -> Result<ReqwestClient, Error>
pub fn with_timeout(timeout: Duration) -> Result<ReqwestClient, Error>
A client that gives an answer timeout to arrive.
Sourcepub fn from_builder(builder: ClientBuilder) -> Result<ReqwestClient, Error>
pub fn from_builder(builder: ClientBuilder) -> Result<ReqwestClient, Error>
A client built from settings of the caller’s own — a proxy, a root certificate, a set of default headers. Whatever redirect policy the builder carries is replaced with none, since following one here would hide it from the SDK.
Trait Implementations§
Source§impl Clone for ReqwestClient
impl Clone for ReqwestClient
Source§impl Debug for ReqwestClient
impl Debug for ReqwestClient
Source§impl Default for ReqwestClient
impl Default for ReqwestClient
Source§fn default() -> ReqwestClient
fn default() -> ReqwestClient
Returns the “default value” for a type. Read more
Source§impl HttpClient for ReqwestClient
impl HttpClient for ReqwestClient
Auto Trait Implementations§
impl !RefUnwindSafe for ReqwestClient
impl !UnwindSafe for ReqwestClient
impl Freeze for ReqwestClient
impl Send for ReqwestClient
impl Sync for ReqwestClient
impl Unpin for ReqwestClient
impl UnsafeUnpin for ReqwestClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more