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

Method constructor

packages/platform/node/src/NodeHttpClient.ts:207–217  ·  view source on GitHub ↗
(
    request: HttpClientRequest,
    source: Undici.Dispatcher.ResponseData
  )

Source from the content-addressed store, hash-verified

205 readonly source: Undici.Dispatcher.ResponseData
206
207 constructor(
208 request: HttpClientRequest,
209 source: Undici.Dispatcher.ResponseData
210 ) {
211 super()
212 this[IncomingMessage.TypeId] = IncomingMessage.TypeId
213 this[Response.TypeId] = Response.TypeId
214 this.request = request
215 this.source = source
216 source.body.on("error", noopErrorHandler)
217 }
218
219 get status() {
220 return this.source.statusCode!

Callers

nothing calls this directly

Calls 1

onMethod · 0.65

Tested by

no test coverage detected