MCPcopy Index your code
hub / github.com/unpkg/unpkg / dispatchFetch

Function dispatchFetch

packages/unpkg-app/src/request-handler.test.ts:20–23  ·  view source on GitHub ↗
(input: RequestInfo | URL, init?: RequestInit)

Source from the content-addressed store, hash-verified

18} as unknown as ExecutionContext;
19
20function dispatchFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response> {
21 let request = input instanceof Request ? input : new Request(input, init);
22 return handleRequest(request, env, context);
23}
24
25function fileResponse(path: string): Response {
26 return new Response(Bun.file(path));

Callers 1

Calls 1

handleRequestFunction · 0.90

Tested by

no test coverage detected