MCPcopy 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

2use reqwest::IntoUrl;
3
4pub async fn download_resource<T: IntoUrl>(url: T) -> anyhow::Result<Bytes> {
5 Ok(reqwest::get(url).await?.bytes().await?)
6}

Callers 1

load_resourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected