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

Function stream

packages/effect/src/unstable/http/HttpBody.ts:481–485  ·  view source on GitHub ↗
(
  body: Stream_.Stream<globalThis.Uint8Array, unknown>,
  contentType?: string,
  contentLength?: number
)

Source from the content-addressed store, hash-verified

479 * @since 4.0.0
480 */
481export const stream = (
482 body: Stream_.Stream<globalThis.Uint8Array, unknown>,
483 contentType?: string,
484 contentLength?: number
485): Stream => new Stream(body, contentType ?? "application/octet-stream", contentLength)
486
487const fileContentLength = (
488 size: FileSystem.SizeInput,

Callers 2

fileFunction · 0.70
fileFromInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected