MCPcopy Create free account
hub / github.com/CanadaHonk/shadow / fetch

Method fetch

engine/network.js:11–15  ·  view source on GitHub ↗
(input = '', corsProxy = !input.startsWith('data:') && !input.includes('://localhost'))

Source from the content-addressed store, hash-verified

9 }
10
11 async fetch(input = '', corsProxy = !input.startsWith('data:') && !input.includes('://localhost')) {
12 let url = this.resolve(input);
13 return await fetch(url);
14 // return await fetch((corsProxy ? 'https://cors-anywhere.com/' : '') + url);
15 }
16}

Callers 3

_loadFunction · 0.95
loadImageMethod · 0.80
processMethod · 0.80

Calls 1

resolveMethod · 0.95

Tested by

no test coverage detected