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

Method constructor

packages/effect/src/unstable/http/HttpBody.ts:180–189  ·  view source on GitHub ↗
(
    body: unknown,
    contentType: string | undefined,
    contentLength: number | undefined
  )

Source from the content-addressed store, hash-verified

178 readonly contentLength: number | undefined
179
180 constructor(
181 body: unknown,
182 contentType: string | undefined,
183 contentLength: number | undefined
184 ) {
185 super()
186 this.body = body
187 this.contentType = contentType
188 this.contentLength = contentLength
189 }
190 toJSON(): unknown {
191 return {
192 _id: "effect/HttpBody",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected