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

Method onResponseData

docs/examples/proxy/proxy.js:75–79  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

73 }
74
75 onResponseData (controller, chunk) {
76 if (this.res.write(chunk) === false) {
77 controller.pause()
78 }
79 }
80
81 onResponseEnd () {
82 this.res.off('close', this.abort)

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected