MCPcopy
hub / github.com/QwikDev/qwik / fetch

Function fetch

starters/adapters/bun/src/entry.bun.ts:65–79  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

63
64Bun.serve({
65 async fetch(request: Request) {
66 const staticResponse = await staticFile(request);
67 if (staticResponse) {
68 return staticResponse;
69 }
70
71 // Server-side render this request with Qwik City
72 const qwikCityResponse = await router(request);
73 if (qwikCityResponse) {
74 return qwikCityResponse;
75 }
76
77 // Path not found
78 return notFound(request);
79 },
80 port,
81});

Callers 15

index.tsxFile · 0.85
index.tsxFile · 0.85
examples.tsxFile · 0.85
loadClientDataFunction · 0.85
stuffFunction · 0.85
getSystemFunction · 0.85
loadPlatformBindingFunction · 0.85
getInfoForSrcFunction · 0.85
loadClientDataFunction · 0.85
rpcFunction · 0.85

Calls 3

staticFileFunction · 0.50
routerFunction · 0.50
notFoundFunction · 0.50

Tested by 1

testsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…