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

Function get

packages/platform/deno/test/DenoHttpCompression.test.ts:42–45  ·  view source on GitHub ↗
(
  handler: (request: Request) => Promise<Response>,
  headers?: Record<string, string>
)

Source from the content-addressed store, hash-verified

40}
41
42const get = (
43 handler: (request: Request) => Promise<Response>,
44 headers?: Record<string, string>
45) => handler(new Request("http://localhost/", headers === undefined ? {} : { headers }))
46
47describe("DenoHttpCompression", () => {
48 it.effect("advertises supported algorithms", () =>

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected