zng_task::http

Function get_bytes

source
pub async fn get_bytes(uri: impl TryUri) -> Result<Vec<u8>, Error>
Expand description

Send a GET request to the uri and read the response as raw bytes.

The default_client is used to send the request.