pub struct ReqwestHttpClient { /* private fields */ }Implementations§
Source§impl ReqwestHttpClient
impl ReqwestHttpClient
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds an HTTP client backed by reqwest.
Installs the stdx rustls CryptoProvider as the process default (if
none is installed yet) before creating the underlying reqwest client,
because reqwest is compiled with the rustls-no-provider feature and
would otherwise panic for lack of a cryptography provider.
Trait Implementations§
Source§impl Clone for ReqwestHttpClient
impl Clone for ReqwestHttpClient
Source§impl Debug for ReqwestHttpClient
impl Debug for ReqwestHttpClient
Source§impl Default for ReqwestHttpClient
Available on crate feature reqwest only.
impl Default for ReqwestHttpClient
Available on crate feature
reqwest only.Source§impl HttpClient for ReqwestHttpClient
Available on crate feature reqwest only.
impl HttpClient for ReqwestHttpClient
Available on crate feature
reqwest only.async fn send( &self, request: HttpRequest, ) -> Result<HttpResponseData, HttpError>
Auto Trait Implementations§
impl !RefUnwindSafe for ReqwestHttpClient
impl !UnwindSafe for ReqwestHttpClient
impl Freeze for ReqwestHttpClient
impl Send for ReqwestHttpClient
impl Sync for ReqwestHttpClient
impl Unpin for ReqwestHttpClient
impl UnsafeUnpin for ReqwestHttpClient
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