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<Range<u64>>) -> Self::RequestBuilder;
}

Required Associated Types§

Required Methods§

Source

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

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§