Skip to main content

ClientBuilderFactory

Type Alias ClientBuilderFactory 

Source
pub type ClientBuilderFactory = Arc<dyn Fn() -> ClientBuilder + Send + Sync>;
Expand description

Factory producing the base reqwest::ClientBuilder for canopy’s clients.

The caller supplies this so it owns cross-cutting client config (user-agent, SSLKEYLOGFILE, proxies, …). Canopy invokes it whenever it needs to build or rebuild a client — at probe time, on mTLS cert renewal, and on reload — then layers its own concerns (mTLS identity, DNS overrides, timeouts) on top.

Aliased Type§

pub struct ClientBuilderFactory { /* private fields */ }