Skip to main content

build_http_client

Function build_http_client 

Source
pub fn build_http_client() -> Result<Client>
Expand description

Build the shared HTTP client used by every API wrapper.

All callers want the same user-agent and timeout, so creating a fresh reqwest::Client per call would just rebuild the connection pool.