MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / fetch

Function fetch

packages/ci-proxy-worker/src/index.ts:56–66  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

54
55export default {
56 async fetch(request: Request): Promise<Response> {
57 try {
58 return await handleRequest(request);
59 } catch (error) {
60 console.error(JSON.stringify({ error: String(error) }));
61 return jsonResponse(
62 { ok: false, error: "SimDeck CI proxy failed." },
63 500,
64 );
65 }
66 },
67};
68
69async function handleRequest(request: Request): Promise<Response> {

Callers 15

postStreamConfigFunction · 0.85
postWebRtcOfferFunction · 0.85
postTelemetryFunction · 0.85
apiRequestFunction · 0.85
fetchSimulatorBlobFunction · 0.85
pollCommandsMethod · 0.85
fetchWithTimeoutFunction · 0.85
proxyToSimDeckFunction · 0.85
pollCommandsMethod · 0.85
app.jsFile · 0.85
proxyLocalRequestFunction · 0.85

Calls 3

jsonResponseFunction · 0.85
errorMethod · 0.80
handleRequestFunction · 0.70

Tested by

no test coverage detected