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

Function readStream

packages/platform/deno/test/DenoHttpPlatform.test.ts:9–9  ·  view source on GitHub ↗
(stream: ReadableStream<Uint8Array>)

Source from the content-addressed store, hash-verified

7const fixture = `${import.meta.dirname}/fixtures/text.txt`
8
9const readStream = (stream: ReadableStream<Uint8Array>) => Effect.promise(() => new globalThis.Response(stream).text())
10
11const readBody = (body: HttpBody.HttpBody) => {
12 assert.strictEqual(body._tag, "Raw")

Callers 1

Calls 1

textMethod · 0.45

Tested by

no test coverage detected