Skip to main content

http_get_once

Function http_get_once 

Source
fn http_get_once(
    url: &str,
    expected_total: u64,
    on_progress: &mut dyn FnMut(u64, u64),
) -> Result<Vec<u8>, (String, bool)>
Expand description

One HTTP GET, streamed in chunks. Returns (message, retryable) on failure.