Skip to main content

shared_http_client

Function shared_http_client 

Source
pub fn shared_http_client() -> &'static Client
Expand description

Return a process-lifetime shared reqwest::Client.

The client is configured with sensible defaults for tool use: connection pooling (4 idle conns/host, 30 s idle timeout) and a 30-second request timeout.