MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / makeRequest

Function makeRequest

ch2-service-workers/main.js:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7};
8
9async function makeRequest() { // <3>
10 const result = await fetch('/data.json');
11 const payload = await result.json();
12 console.log(payload);
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected