Skip to main content

create_http_client

Function create_http_client 

Source
pub fn create_http_client(proxy: Option<&ProxyConfig>) -> Result<Arc<Client>>
Expand description

Creates a new HTTP client with optimal pooling configuration (simple API).

§Arguments

  • proxy - Optional proxy configuration

§Returns

An Arc-wrapped HTTP client configured with connection pooling

§Errors

Returns an error if the HTTP client cannot be built