Skip to main content

SyncHttpRangeClient

Trait SyncHttpRangeClient 

Source
pub trait SyncHttpRangeClient {
    // Required methods
    fn get_range(&self, url: &str, range: &str) -> Result<Bytes>;
    fn head_response_header(
        &self,
        url: &str,
        header: &str,
    ) -> Result<Option<String>>;
}
Expand description

Sync HTTP client for Range requests

Required Methods§

Source

fn get_range(&self, url: &str, range: &str) -> Result<Bytes>

Send a GET range request

Source

fn head_response_header( &self, url: &str, header: &str, ) -> Result<Option<String>>

Send a HEAD request and return response header value

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SyncHttpRangeClient for Client

Source§

fn get_range(&self, url: &str, range: &str) -> Result<Bytes>

Source§

fn head_response_header( &self, url: &str, header: &str, ) -> Result<Option<String>>

Source§

impl SyncHttpRangeClient for Agent

Source§

fn get_range(&self, url: &str, range: &str) -> Result<Bytes>

Source§

fn head_response_header( &self, url: &str, header: &str, ) -> Result<Option<String>>

Implementors§