MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / http_client

Method http_client

nodedb/src/control/state/methods.rs:168–170  ·  view source on GitHub ↗

Shared HTTP client reused by every outbound emitter. Cloning the Arc is cheap — the client itself owns a connection pool, DNS resolver, and TLS session cache that every caller benefits from.

(&self)

Source from the content-addressed store, hash-verified

166 /// Arc is cheap — the client itself owns a connection pool, DNS
167 /// resolver, and TLS session cache that every caller benefits from.
168 pub fn http_client(&self) -> &std::sync::Arc<reqwest::Client> {
169 &self.http_client
170 }
171
172 /// Cluster-wide version view derived on demand from the live
173 /// `cluster_topology` snapshot. Replaces the old

Callers 2

dispatch_notificationsFunction · 0.80
assert_shapeFunction · 0.80

Calls

no outgoing calls

Tested by 1

assert_shapeFunction · 0.64