use reqwest::IntoUrl; use super::HttpClient; pub async fn fetch_html(client: Option<&HttpClient>, url: T) -> eyre::Result { let client = client.unwrap_or_default(); let content = client .get(url) .send() .await? .error_for_status()? .text() .await?; Ok(content) }