()
| 2095 | return this[kHandler].onError(error); |
| 2096 | } |
| 2097 | onFinally() { |
| 2098 | if (this.errorHandler) { |
| 2099 | this.body.off("error", this.errorHandler); |
| 2100 | this.errorHandler = null; |
| 2101 | } |
| 2102 | if (this.endHandler) { |
| 2103 | this.body.off("end", this.endHandler); |
| 2104 | this.endHandler = null; |
| 2105 | } |
| 2106 | } |
| 2107 | addHeader(key, value) { |
| 2108 | processHeader(this, key, value); |
| 2109 | return this; |
no test coverage detected