Skip to main content

http_client

Function http_client 

Source
pub fn http_client() -> Result<Client, GhcrError>
Expand description

Build the shared HTTP client used for registry round-trips (bounded connect and request timeouts, a polychrome/<version> user agent).

§Errors

Returns GhcrError::Http if the client can’t be constructed.