use bytes::Bytes; use reqwest::IntoUrl; use super::client::HttpClientTrait; use crate::errors::RecorderError; pub async fn fetch_bytes( client: &H, url: T, ) -> Result { let bytes = client .get(url) .send() .await? .error_for_status()? .bytes() .await?; Ok(bytes) }