Skip to main content

HttpClient

Trait HttpClient 

Source
pub trait HttpClient:
    Clone
    + Send
    + Sync
    + Unpin
    + 'static {
    type RequestBuilder: HttpRequestBuilder;

    // Required method
    fn get(
        &self,
        url: Url,
        range: Option<ProgressEntry>,
    ) -> Self::RequestBuilder;
}
Expand description

Abstraction over an HTTP client that can send GET requests with optional byte-range headers.

Required Associated Types§

Source

type RequestBuilder: HttpRequestBuilder

The request builder this client produces.

Required Methods§

Source

fn get(&self, url: Url, range: Option<ProgressEntry>) -> Self::RequestBuilder

Start a GET request, optionally restricted to range.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HttpClient for Client

Implementors§