()
| 3029 | return this[kHandler].onResponseError?.(controller, error); |
| 3030 | } |
| 3031 | onFinally() { |
| 3032 | if (this.errorHandler) { |
| 3033 | this.body.off("error", this.errorHandler); |
| 3034 | this.errorHandler = null; |
| 3035 | } |
| 3036 | if (this.endHandler) { |
| 3037 | this.body.off("end", this.endHandler); |
| 3038 | this.endHandler = null; |
| 3039 | } |
| 3040 | } |
| 3041 | addHeader(key, value) { |
| 3042 | processHeader(this, key, value); |
| 3043 | return this; |
no test coverage detected