Skip to main content

build_http_client

Function build_http_client 

Source
pub fn build_http_client() -> Client
Expand description

The pooled reqwest::Client every CodeEngine call (discovery ping, POST /rpc, SSE) shares.

Why: pub since #4512 so tcode tui’s auto-spawn path — which resolves the daemon URL itself, then hands it to CodeEngine::with_daemon_url — builds its liveness-probe client with the SAME pool settings the engine would have used, rather than a second, divergent client.