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

Method onResponseData

lib/api/api-request.js:158–166  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

156 }
157
158 onResponseData (controller, chunk) {
159 if (!this.res) {
160 return
161 }
162
163 if (this.res.push(chunk) === false) {
164 controller.pause()
165 }
166 }
167
168 onResponseEnd (_controller, trailers) {
169 if (trailers && typeof trailers === 'object') {

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected