Skip to main content

download

Function download 

Source
pub fn download(
    url: &str,
    progress: impl FnMut(u64, Option<u64>),
) -> Result<Vec<u8>, Error>
Expand description

Download a file, calling progress(done, total) as it arrives (total when the server says it). Download links need no headers.