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