Skip to main content

create_http_client

Function create_http_client 

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

Creates a reusable HTTP client with rustls-TLS, 30 s timeout, and HTTP/2.

The client should be created once per invocation and shared via Arc.