MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / fetch

Function fetch

cli/src/build.rs:248–251  ·  view source on GitHub ↗
(url: &str)

Source from the content-addressed store, hash-verified

246}
247
248fn fetch(url: &str) -> Result<Vec<u8>> {
249 let mut resp = ureq::get(url).call().map_err(|e| anyhow!("HTTP error: {e}"))?;
250 resp.body_mut().read_to_vec().map_err(|e| anyhow!("reading body: {e}"))
251}

Callers 7

http.jsFile · 0.85
runFunction · 0.85
vendor_runtimeFunction · 0.85
vendor_packagesFunction · 0.85
loadFunction · 0.85
fetchWithLockfileFunction · 0.85
connectedCallbackMethod · 0.85

Calls 2

getFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected