* @param {Buffer|null} chunk * @returns {boolean}
(chunk)
| 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. |
no test coverage detected