MCPcopy
hub / github.com/unpkg/unpkg / fileResponse

Function fileResponse

packages/unpkg-www/src/request-handler.test.ts:28–30  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected