Function abstio::download::download_to_file[][src]

pub async fn download_to_file<I1: AsRef<str>, I2: AsRef<str>>(
    url: I1,
    post_body: Option<String>,
    path: I2
) -> Result<()>
Expand description

Download a file from a URL. This must be called with a tokio runtime somewhere. Progress will be printed to STDOUT.