MCPcopy Create free account
hub / github.com/nodejs/node / onBodySent

Method onBodySent

deps/undici/undici.js:2917–2928  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

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 });

Callers

nothing calls this directly

Calls 3

onBodySentMethod · 0.65
abortMethod · 0.65
publishMethod · 0.45

Tested by

no test coverage detected