()
| 348 | const bodyIterator = cachedValue.body.values() |
| 349 | |
| 350 | const streamCachedBody = () => { |
| 351 | for (const chunk of bodyIterator) { |
| 352 | const full = this.#writeStream.write(chunk) === false |
| 353 | this.#handler.onResponseData?.(controller, chunk) |
| 354 | // when stream is full stop writing until we get a 'drain' event |
| 355 | if (full) { |
| 356 | break |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | this.#writeStream |
| 362 | .on('error', function () { |
nothing calls this directly
no test coverage detected