pub trait AsyncHttpRangeClient {
    // Required methods
    fn get_range<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
        range: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn head_response_header<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
        header: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Async HTTP client for Range requests

Required Methods§

source

fn get_range<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, url: &'life1 str, range: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Send a GET range request

source

fn head_response_header<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, url: &'life1 str, header: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Send a HEAD request and return response header value

Implementations on Foreign Types§

source§

impl AsyncHttpRangeClient for Client

source§

fn get_range<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, url: &'life1 str, range: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source§

fn head_response_header<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, url: &'life1 str, header: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§