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

Function readResponse

packages/platform/node/test/NodeHttpPlatform.test.ts:14–15  ·  view source on GitHub ↗
(response: HttpServerResponse.HttpServerResponse)

Source from the content-addressed store, hash-verified

12import { fileSystemLayer } from "../../node-shared/test/HttpPlatform.test-utils.ts"
13
14const readResponse = (response: HttpServerResponse.HttpServerResponse) =>
15 Effect.promise(() => HttpServerResponse.toWeb(response).text())
16
17describe("NodeHttpPlatform", { concurrent: false }, () => {
18 it.effect("fileWebResponse prefers File.type over the extension", () =>

Callers 1

Calls 1

textMethod · 0.65

Tested by

no test coverage detected