pub struct ReqwestClient(/* private fields */);Expand description
A reqwest client implementing HttpClientExt.
Default is the process-wide client, built once and shared by every
clone; From<reqwest::Client> wraps a configured client and keeps its
connection pool.
Implementations§
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§impl From<Client> for ReqwestClient
impl From<Client> for ReqwestClient
Source§impl HttpClientExt for ReqwestClient
impl HttpClientExt for ReqwestClient
Source§fn send<T, U>(
&self,
req: Request<T>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send<T, U>( &self, req: Request<T>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a request and returns headers with a lazy body converted from bytes to
U.Source§fn send_multipart<U>(
&self,
req: Request<MultipartForm>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send_multipart<U>( &self, req: Request<MultipartForm>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a multipart request and returns headers with a lazy body converted to
U.Source§fn send_streaming<T>(
&self,
req: Request<T>,
) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
fn send_streaming<T>( &self, req: Request<T>, ) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
Sends a request and returns headers with a stream of transport byte chunks.
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