Function abstio::download_bytes[][src]

pub async fn download_bytes<I: AsRef<str>>(
    url: I,
    progress: &mut Sender<String>
) -> Result<Vec<u8>>

Downloads bytes from a URL. This must be called with a tokio runtime somewhere. The caller creates an mpsc channel pair and provides the sender. Progress will be described through it.