MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / fetch

Function fetch

apps/site/cloudflare/worker-entrypoint.ts:33–49  ·  view source on GitHub ↗
(
      request: Request,
      env: Record<string, unknown>,
      ctx: ExecutionContext
    )

Source from the content-addressed store, hash-verified

31 }),
32 {
33 async fetch(
34 request: Request,
35 env: Record<string, unknown>,
36 ctx: ExecutionContext
37 ) {
38 setTags({
39 request_id: crypto.randomUUID(),
40 user_agent: request.headers.get('user-agent'),
41 ray_id: request.headers.get('cf-ray'),
42
43 // Type casts needed to keep lsp happy
44 ip_country: request.cf?.country as Iso3166Alpha2Code | undefined,
45 colo: request.cf?.colo as string | undefined,
46 });
47
48 return handler.fetch(request, env, ctx);
49 },
50 }
51);
52

Callers 3

attemptFetchFunction · 0.85
loadOramaFunction · 0.85
requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected