Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SingleRust/SingleRust
/ download_resource
Function
download_resource
src/connectors/utils.rs:4–6 ·
view source on GitHub ↗
(url: T)
Source
from the content-addressed store, hash-verified
2
use reqwest::IntoUrl;
3
4
pub async fn download_resource<T: IntoUrl>(url: T) -> anyhow::Result<Bytes> {
5
Ok(reqwest::get(url).await?.bytes().await?)
6
}
Callers
1
load_resource
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected