(chunk)
| 2915 | } |
| 2916 | } |
| 2917 | onBodySent(chunk) { |
| 2918 | if (channels.bodyChunkSent.hasSubscribers) { |
| 2919 | channels.bodyChunkSent.publish({ request: this, chunk }); |
| 2920 | } |
| 2921 | if (this[kHandler].onBodySent) { |
| 2922 | try { |
| 2923 | return this[kHandler].onBodySent(chunk); |
| 2924 | } catch (err) { |
| 2925 | this.abort(err); |
| 2926 | } |
| 2927 | } |
| 2928 | } |
| 2929 | onRequestSent() { |
| 2930 | if (channels.bodySent.hasSubscribers) { |
| 2931 | channels.bodySent.publish({ request: this }); |
nothing calls this directly
no test coverage detected