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

Function get

packages/platform/node/test/NodeHttpCompression.test.ts:47–50  ·  view source on GitHub ↗
(
  handler: (request: Request) => Promise<Response>,
  headers?: Record<string, string>
)

Source from the content-addressed store, hash-verified

45}
46
47const get = (
48 handler: (request: Request) => Promise<Response>,
49 headers?: Record<string, string>
50) => handler(new Request("http://localhost/", headers === undefined ? {} : { headers }))
51
52describe("NodeHttpCompression", () => {
53 it.effect("advertises supported algorithms", () =>

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected