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

Method onResponseData

deps/undici/src/lib/interceptor/dump.js:66–80  ·  view source on GitHub ↗
(controller, chunk)

Source from the content-addressed store, hash-verified

64 }
65
66 onResponseData (controller, chunk) {
67 this.#size = this.#size + chunk.length
68
69 if (this.#size >= this.#maxSize) {
70 this.#dumped = true
71
72 if (this.aborted === true) {
73 super.onResponseError(controller, this.reason)
74 } else {
75 super.onResponseEnd(controller, {})
76 }
77 }
78
79 return true
80 }
81
82 onResponseEnd (controller, trailers) {
83 if (this.#dumped) {

Callers

nothing calls this directly

Calls 2

onResponseErrorMethod · 0.65
onResponseEndMethod · 0.65

Tested by

no test coverage detected