Skip to main content

build_probe_client

Function build_probe_client 

Source
fn build_probe_client(direct: bool) -> Option<Client>
Expand description

Build the reqwest client for a single npm probe. direct adds .no_proxy() so the request bypasses any ambient proxy env and connects straight to the registry; both variants keep with_extra_roots so a corporate / mitmproxy CA still validates.