pub trait Downloader:
Send
+ Sync
+ 'static {
type Client: Send + Sync;
// Required methods
fn download<'life0, 'async_trait>(
&'life0 self,
request: Request,
) -> Pin<Box<dyn Future<Output = Result<Response, SpiderError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn client(&self) -> &Self::Client;
}Expand description
Trait implemented by HTTP downloaders used by the crawler runtime.