MCPcopy Create free account
hub / github.com/nodejs/undici / onResponseData

Method onResponseData

lib/handler/cache-handler.js:433–439  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

431 }
432
433 onResponseData (controller, chunk) {
434 if (this.#writeStream?.write(chunk) === false) {
435 controller.pause()
436 }
437
438 this.#handler.onResponseData?.(controller, chunk)
439 }
440
441 onResponseEnd (controller, trailers) {
442 this.#writeStream?.end()

Callers

nothing calls this directly

Calls 3

pauseMethod · 0.65
onResponseDataMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected