pub async fn get_bytes(http_client: &Client, url: &str) -> Result<Bytes>Expand description
Performs an unauthenticated HTTP GET request and returns the response as bytes.
§Arguments
http_client- The HTTP client to use for the requesturl- The URL to request
§Returns
The response body as bytes
§Errors
Returns ClientError::HttpRequestFailed if the HTTP request fails,
or an error if streaming the response bytes fails.