MCPcopy Index your code
hub / github.com/nodejs/undici / onResponseData

Method onResponseData

lib/api/api-stream.js:196–206  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

194 }
195
196 onResponseData (controller, chunk) {
197 const { res } = this
198
199 if (!res) {
200 return
201 }
202
203 if (res.write(chunk) === false) {
204 controller.pause()
205 }
206 }
207
208 onResponseEnd (_controller, trailers) {
209 const { res } = this

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected