Skip to main content

client

Function client 

Source
fn client() -> &'static Client<HttpConnector, Full<Bytes>>
Expand description

One pooled client for the process, keep-alive included: a fresh TCP handshake per replica per query is most of the latency of a small one.

Plain HTTP with no TLS option, unlike the webhook dispatcher. A replica is this deployment’s own node on its own network, and --replica refuses any other scheme at load — so there is no second place where the eleven crates behind webhook-tls have to be argued about.