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

Method constructor

packages/effect/src/unstable/http/HttpBody.ts:231–240  ·  view source on GitHub ↗
(
    body: globalThis.Uint8Array,
    contentType: string,
    contentLength: number
  )

Source from the content-addressed store, hash-verified

229 readonly contentLength: number
230
231 constructor(
232 body: globalThis.Uint8Array,
233 contentType: string,
234 contentLength: number
235 ) {
236 super()
237 this.body = body
238 this.contentType = contentType
239 this.contentLength = contentLength
240 }
241 toJSON(): unknown {
242 const toString = this.contentType.startsWith("text/") || this.contentType.endsWith("json")
243 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected