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

Method constructor

packages/effect/src/unstable/http/HttpBody.ts:451–460  ·  view source on GitHub ↗
(
    stream: Stream_.Stream<globalThis.Uint8Array, unknown>,
    contentType: string,
    contentLength: number | undefined
  )

Source from the content-addressed store, hash-verified

449 readonly contentLength: number | undefined
450
451 constructor(
452 stream: Stream_.Stream<globalThis.Uint8Array, unknown>,
453 contentType: string,
454 contentLength: number | undefined
455 ) {
456 super()
457 this.stream = stream
458 this.contentType = contentType
459 this.contentLength = contentLength
460 }
461 toJSON(): unknown {
462 return {
463 _id: "effect/HttpBody",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected