MCPcopy Index your code
hub / github.com/Effect-TS/effect / fetch

Function fetch

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

Source from the content-addressed store, hash-verified

309 it.effect("fetch removes content-length header", () => {
310 let headers: globalThis.RequestInit["headers"] | undefined
311 const fetch: typeof globalThis.fetch = (_, init) => {
312 headers = init?.headers
313 return Promise.resolve(new Response("ok"))
314 }
315 return Effect.gen(function*() {
316 const client = yield* HttpClient.HttpClient
317

Callers 3

sendFunction · 0.50
package-scalar.mjsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected