Trait AsyncHttpRangeClient

Source
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§