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

Method onRequestStart

deps/undici/src/lib/core/request.js:309–322  ·  view source on GitHub ↗
(abort, context)

Source from the content-addressed store, hash-verified

307 }
308
309 onRequestStart (abort, context) {
310 assert(!this.aborted)
311 assert(!this.completed)
312
313 this[kController] = new RequestController(abort)
314
315 if (this.error) {
316 this[kController].abort(this.error)
317 return
318 }
319
320 this.abort = abort
321 return this[kHandler].onRequestStart(this[kController], context)
322 }
323
324 onResponseStarted () {
325 return this[kHandler].onResponseStarted?.()

Callers

nothing calls this directly

Calls 3

abortMethod · 0.65
onRequestStartMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected