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

Function fetch

packages/platform/test/HttpClient.test.ts:325–328  ·  view source on GitHub ↗
(_, init)

Source from the content-addressed store, hash-verified

323 it.effect("fetch removes content-length header", () => {
324 let headers: globalThis.RequestInit["headers"] | undefined
325 const fetch: typeof globalThis.fetch = (_, init) => {
326 headers = init?.headers
327 return Promise.resolve(new Response("ok"))
328 }
329 return Effect.gen(function*() {
330 const client = yield* HttpClient.HttpClient
331

Callers 3

sendFunction · 0.50
package-scalar.mjsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected