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

Function fileResponse

packages/unpkg-app/src/request-handler.test.ts:25–27  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

23}
24
25function fileResponse(path: string): Response {
26 return new Response(Bun.file(path));
27}
28
29describe("handleRequest", () => {
30 let globalCaches: CacheStorage | undefined;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected