(controller, chunk)
| 44 | } |
| 45 | |
| 46 | onResponseData (controller, chunk) { |
| 47 | if (this.#statusCode < 400) { |
| 48 | return super.onResponseData(controller, chunk) |
| 49 | } |
| 50 | |
| 51 | this.#body += this.#decoder?.decode(chunk, { stream: true }) ?? '' |
| 52 | } |
| 53 | |
| 54 | onResponseEnd (controller, trailers) { |
| 55 | if (this.#statusCode >= 400) { |
nothing calls this directly
no test coverage detected