pub struct HttpFetchProvider { /* private fields */ }Expand description
Production client fetch backend composed from transport, decoding, and cache layers.
Implementations§
Source§impl HttpFetchProvider
impl HttpFetchProvider
Sourcepub const fn new(
transport: FetchHttpTransport,
decoder: FetchBodyDecoder,
scope: FetchCacheScope,
cache: Arc<FetchResultCache>,
) -> Self
pub const fn new( transport: FetchHttpTransport, decoder: FetchBodyDecoder, scope: FetchCacheScope, cache: Arc<FetchResultCache>, ) -> Self
Creates a provider from explicit independently testable layers.
Sourcepub fn production(
scope: FetchCacheScope,
cache: Arc<FetchResultCache>,
http: &ProviderHttpConfig,
) -> Self
pub fn production( scope: FetchCacheScope, cache: Arc<FetchResultCache>, http: &ProviderHttpConfig, ) -> Self
Creates the production HTTPS/public-network provider.
Trait Implementations§
Source§impl Clone for HttpFetchProvider
impl Clone for HttpFetchProvider
Source§impl Debug for HttpFetchProvider
impl Debug for HttpFetchProvider
Source§impl FetchProvider for HttpFetchProvider
impl FetchProvider for HttpFetchProvider
Source§fn fetch(
&self,
request: FetchRequest,
cancellation: CancellationScope,
) -> FetchFuture<'_>
fn fetch( &self, request: FetchRequest, cancellation: CancellationScope, ) -> FetchFuture<'_>
Executes one bounded request with cooperative cancellation.
Auto Trait Implementations§
impl !Freeze for HttpFetchProvider
impl !RefUnwindSafe for HttpFetchProvider
impl !UnwindSafe for HttpFetchProvider
impl Send for HttpFetchProvider
impl Sync for HttpFetchProvider
impl Unpin for HttpFetchProvider
impl UnsafeUnpin for HttpFetchProvider
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