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

Method stream

packages/platform/node/src/NodeHttpClient.ts:244–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 }
243
244 get stream(): Stream.Stream<Uint8Array, Error.HttpClientError> {
245 return NodeStream.fromReadable({
246 evaluate: () => this.source.body,
247 onError: (cause) =>
248 new Error.HttpClientError({
249 reason: new Error.DecodeError({
250 request: this.request,
251 response: this,
252 cause
253 })
254 })
255 })
256 }
257
258 get json(): Effect.Effect<Schema.Json, Error.HttpClientError> {
259 return Effect.flatMap(this.text, (text) =>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected