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