pub struct ReqwestBackend { /* private fields */ }Expand description
The default HttpBackend implementation, backed by reqwest.
Implementations§
Source§impl ReqwestBackend
impl ReqwestBackend
Sourcepub fn with_client(client: Client) -> Self
pub fn with_client(client: Client) -> Self
Creates a backend wrapping a caller-provided reqwest::Client.
Useful for sharing a connection pool or customizing proxy/TLS settings.
Trait Implementations§
Source§impl Clone for ReqwestBackend
impl Clone for ReqwestBackend
Source§fn clone(&self) -> ReqwestBackend
fn clone(&self) -> ReqwestBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReqwestBackend
impl Debug for ReqwestBackend
Source§impl Default for ReqwestBackend
impl Default for ReqwestBackend
Source§impl HttpBackend for ReqwestBackend
impl HttpBackend for ReqwestBackend
Source§fn send<'life0, 'async_trait>(
&'life0 self,
request: HttpRequest,
) -> Pin<Box<dyn Future<Output = ApifyClientResult<HttpResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
request: HttpRequest,
) -> Pin<Box<dyn Future<Output = ApifyClientResult<HttpResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sends a single HTTP request and returns the response. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ReqwestBackend
impl !UnwindSafe for ReqwestBackend
impl Freeze for ReqwestBackend
impl Send for ReqwestBackend
impl Sync for ReqwestBackend
impl Unpin for ReqwestBackend
impl UnsafeUnpin for ReqwestBackend
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