Skip to main content

HttpClientFactory

Trait HttpClientFactory 

Source
pub trait HttpClientFactory: Send + Sync {
    // Required method
    fn create_client(&self, base_url: &str) -> Box<dyn HttpClient>;
}
Expand description

HTTP client factory trait

Used to create HTTP clients with platform-specific implementations.

Required Methods§

Source

fn create_client(&self, base_url: &str) -> Box<dyn HttpClient>

Implementors§