MCPcopy Index your code
hub / github.com/nodejs/node / onRequestStart

Method onRequestStart

deps/undici/undici.js:2941–2951  ·  view source on GitHub ↗
(abort, context)

Source from the content-addressed store, hash-verified

2939 }
2940 }
2941 onRequestStart(abort, context) {
2942 assert(!this.aborted);
2943 assert(!this.completed);
2944 this[kController] = new RequestController(abort);
2945 if (this.error) {
2946 this[kController].abort(this.error);
2947 return;
2948 }
2949 this.abort = abort;
2950 return this[kHandler].onRequestStart(this[kController], context);
2951 }
2952 onResponseStarted() {
2953 return this[kHandler].onResponseStarted?.();
2954 }

Callers

nothing calls this directly

Calls 3

abortMethod · 0.65
onRequestStartMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected