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

Function fetchText

packages/platform/bun/test/BunHttpServer.test.ts:9–10  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

7import * as HttpServerResponse from "effect/unstable/http/HttpServerResponse"
8
9const fetchText = (url: string) =>
10 Effect.promise(() => fetch(url, { headers: { connection: "close" } }).then((response) => response.text()))
11
12describe("BunHttpServer", () => {
13 it.effect("closing an older serve scope keeps the newer handler active", () =>

Callers 1

Calls 1

textMethod · 0.45

Tested by

no test coverage detected