pub trait HttpClient {
    // Required method
    fn request(
        &self,
        endpoint: Endpoint,
        style: Style,
        function: &str,
        params: String,
        params_type: ParamsType,
        body: Option<&[u8]>,
        range_start: Option<u64>,
        range_end: Option<u64>
    ) -> Result<HttpRequestResultRaw>;
}
Expand description

The base HTTP client trait.

Required Methods§

source

fn request( &self, endpoint: Endpoint, style: Style, function: &str, params: String, params_type: ParamsType, body: Option<&[u8]>, range_start: Option<u64>, range_end: Option<u64> ) -> Result<HttpRequestResultRaw>

Make a HTTP request.

Implementors§

source§

impl HttpClient for NoauthDefaultClient

Available on crate feature default_client only.
source§

impl HttpClient for TeamAuthDefaultClient

Available on crate feature default_client only.
source§

impl HttpClient for UserAuthDefaultClient

Available on crate feature default_client only.