(controller, chunk)
| 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) { |
nothing calls this directly
no test coverage detected