(trailers)
| 2071 | return this[kHandler].onUpgrade(statusCode, headers, socket); |
| 2072 | } |
| 2073 | onComplete(trailers) { |
| 2074 | this.onFinally(); |
| 2075 | assert(!this.aborted); |
| 2076 | this.completed = true; |
| 2077 | if (channels.trailers.hasSubscribers) { |
| 2078 | channels.trailers.publish({ request: this, trailers }); |
| 2079 | } |
| 2080 | try { |
| 2081 | return this[kHandler].onComplete(trailers); |
| 2082 | } catch (err) { |
| 2083 | this.onError(err); |
| 2084 | } |
| 2085 | } |
| 2086 | onError(error) { |
| 2087 | this.onFinally(); |
| 2088 | if (channels.error.hasSubscribers) { |
no test coverage detected