pub struct HttpClient { /* private fields */ }Expand description
The HTTP client send and send_prepared send through.
A thin wrapper around reqwest::Client rather than a re-export of it, so
that the redirect chain a request’s reqwest::redirect::Policy observes
has somewhere to be recorded and read back — see [RedirectLog]. A
front-end builds one with build_client and passes it around without
taking a direct dependency on reqwest.
Auto Trait Implementations§
impl !RefUnwindSafe for HttpClient
impl !UnwindSafe for HttpClient
impl Freeze for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnsafeUnpin for HttpClient
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