MCPcopy Create free account
hub / github.com/Effect-TS/effect / get

Function get

packages/platform/bun/test/BunHttpCompression.test.ts:53–56  ·  view source on GitHub ↗
(
  handler: (request: Request) => Promise<Response>,
  algorithm: Algorithm
)

Source from the content-addressed store, hash-verified

51}
52
53const get = (
54 handler: (request: Request) => Promise<Response>,
55 algorithm: Algorithm
56) => handler(new Request("http://localhost/", { headers: { "accept-encoding": algorithm } }))
57
58// Bun's CompressionStream does not expose an explicit flush operation, so
59// incremental SSE-style delivery is runtime-defined and intentionally is not

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected