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

Method push

deps/undici/src/lib/api/readable.js:157–167  ·  view source on GitHub ↗

* @param {Buffer|null} chunk * @returns {boolean}

(chunk)

Source from the content-addressed store, hash-verified

155 * @returns {boolean}
156 */
157 push (chunk) {
158 if (chunk) {
159 this[kBytesRead] += chunk.length
160 if (this[kConsume]) {
161 consumePush(this[kConsume], chunk)
162 return this[kReading] ? super.push(chunk) : true
163 }
164 }
165
166 return super.push(chunk)
167 }
168
169 /**
170 * Consumes and returns the body as a string.

Callers 15

writeMethod · 0.45
finalMethod · 0.45
writeMethod · 0.45
normalizeHeadersFunction · 0.45
setRecordsMethod · 0.45
onResponseStartMethod · 0.45
parseHeadersFunction · 0.45
parseRawHeadersFunction · 0.45
toRawHeadersFunction · 0.45
addListenerFunction · 0.45
parseResponseAddressFunction · 0.45

Calls 1

consumePushFunction · 0.70

Tested by

no test coverage detected