Skip to main content

get_http_bytes

Function get_http_bytes 

Source
pub fn get_http_bytes<U: ToUrl>(url: U) -> Result<Vec<u8>, NanoGetError>
Expand description

Performs a GET request using HTTP only and returns raw bytes.

Returns NanoGetError::UnsupportedScheme if the URL is not http://.