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

Method onResponseData

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

Source from the content-addressed store, hash-verified

445 }
446
447 onResponseData (controller, chunk) {
448 if (this.#writeStream?.write(chunk) === false) {
449 controller.pause()
450 }
451
452 this.#handler.onResponseData?.(controller, chunk)
453 }
454
455 onResponseEnd (controller, trailers) {
456 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