pub trait HttpClient {
    type Cache: HttpCache;

    // Required methods
    fn download_with_headers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 Url
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8, Global>, HashMap<String, String, RandomState>), Error>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn download_with_progress<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 Url
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8, Global>, HashMap<String, String, RandomState>), Error>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn cache(&self) -> &Self::Cache;
}

Required Associated Types§

Required Methods§

source

fn download_with_headers<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 Url ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8, Global>, HashMap<String, String, RandomState>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

source

fn download_with_progress<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 Url ) -> Pin<Box<dyn Future<Output = Result<(Vec<u8, Global>, HashMap<String, String, RandomState>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

source

fn cache(&self) -> &Self::Cache

Implementors§