Skip to main content

Module http_client

Module http_client 

Source
Expand description

Shared HTTP client singleton. Shared HTTP client singleton for oxi-agent tools.

All agent tools that need an HTTP client should use shared_http_client() to reuse the same connection pool and TLS sessions across the process lifetime.

Functionsยง

shared_http_client
Return a process-lifetime shared reqwest::Client.