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

Function stream

packages/effect/src/unstable/http/HttpClientResponse.ts:145–147  ·  view source on GitHub ↗
(
  effect: Effect.Effect<HttpClientResponse, E, R>
)

Source from the content-addressed store, hash-verified

143 * @since 4.0.0
144 */
145export const stream = <E, R>(
146 effect: Effect.Effect<HttpClientResponse, E, R>
147): Stream.Stream<Uint8Array, Error.HttpClientError | E, R> => Stream.unwrap(Effect.map(effect, (self) => self.stream))
148
149/**
150 * Pattern matches on a response status, checking exact status handlers before status-class handlers and `orElse`.

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected