Skip to main content

build_http

Function build_http 

Source
pub fn build_http() -> Result<Client>
Expand description

Shared HTTP client. 30 s timeout is comfortable for the 2 MB cap times a slow upstream — GitHub API is also cheap to tolerate.

Typed, not INTERNAL: the only realistic failure is a TLS backend the host cannot initialise, which is the same “the registry is unreachable from here” class every other transport failure on this path reports.