pub async fn download_file(
name: &str,
url: &str,
path: &Path,
headers: Option<HeaderMap>,
show_progress: bool,
) -> Result<()>Expand description
Fetches url and writes the response body to path.join(name), optionally showing a
progress bar (see crate::fetch::fetch_content).