Skip to main content

HasHttpClient

Trait HasHttpClient 

Source
pub trait HasHttpClient {
    // Required methods
    fn http_client(&self) -> &HttpClient;
    fn base_url(&self) -> &'static str;
}
Expand description

Trait for exchanges that can execute HTTP requests.

Required Methods§

Source

fn http_client(&self) -> &HttpClient

Get reference to the HTTP client.

Source

fn base_url(&self) -> &'static str

Get the base URL for API requests.

Implementors§