pub struct ReqwestTransport;Expand description
Default transport backed by reqwest.
Preserves the historical fetch behavior exactly:
- new
reqwest::Clientper request (TM-NET-003: no pool state leakage) - redirects disabled (TM-SSRF-010: fetchkit follows redirects manually)
- ambient proxy env ignored unless
respect_proxy_env(TM-NET-004) - DNS pinned to fetchkit-validated addresses when
pinned_addrsis non-empty (TM-SSRF-001, TM-SSRF-005)
Implementations§
Trait Implementations§
Source§impl Clone for ReqwestTransport
impl Clone for ReqwestTransport
Source§fn clone(&self) -> ReqwestTransport
fn clone(&self) -> ReqwestTransport
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 ReqwestTransport
impl Debug for ReqwestTransport
Source§impl Default for ReqwestTransport
impl Default for ReqwestTransport
Source§fn default() -> ReqwestTransport
fn default() -> ReqwestTransport
Returns the “default value” for a type. Read more
Source§impl HttpTransport for ReqwestTransport
impl HttpTransport for ReqwestTransport
Source§fn execute<'life0, 'async_trait>(
&'life0 self,
req: TransportRequest,
) -> Pin<Box<dyn Future<Output = Result<TransportResponse, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
req: TransportRequest,
) -> Pin<Box<dyn Future<Output = Result<TransportResponse, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a single HTTP request hop.
Auto Trait Implementations§
impl Freeze for ReqwestTransport
impl RefUnwindSafe for ReqwestTransport
impl Send for ReqwestTransport
impl Sync for ReqwestTransport
impl Unpin for ReqwestTransport
impl UnsafeUnpin for ReqwestTransport
impl UnwindSafe for ReqwestTransport
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