()
| 2018 | } |
| 2019 | } |
| 2020 | onRequestSent() { |
| 2021 | if (channels.bodySent.hasSubscribers) { |
| 2022 | channels.bodySent.publish({ request: this }); |
| 2023 | } |
| 2024 | if (this[kHandler].onRequestSent) { |
| 2025 | try { |
| 2026 | return this[kHandler].onRequestSent(); |
| 2027 | } catch (err) { |
| 2028 | this.abort(err); |
| 2029 | } |
| 2030 | } |
| 2031 | } |
| 2032 | onConnect(abort) { |
| 2033 | assert(!this.aborted); |
| 2034 | assert(!this.completed); |
no test coverage detected