Skip to main content

create_download_client

Function create_download_client 

Source
pub fn create_download_client(user_agent: &str) -> Client
Expand description

Create a client for large artifact transfers (release downloads, assets).

Uses the installed download budget instead of the request budget: a multi-megabyte archive on a cold cache routinely needs longer than the interactive request default, and failing it silently is how installers end up “hanging for 60 seconds and dying” on slower connections.