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

Method onRequestStart

lib/api/api-request.js:83–94  ·  view source on GitHub ↗
(controller, context)

Source from the content-addressed store, hash-verified

81 }
82
83 onRequestStart (controller, context) {
84 if (this.reason) {
85 controller.abort(this.reason)
86 return
87 }
88
89 assert(this.callback)
90
91 this.controller = controller
92 this.abort = (reason) => controller.abort(reason)
93 this.context = context
94 }
95
96 onResponseStart (controller, statusCode, headers, statusText) {
97 const { callback, opaque, context, responseHeaders, highWaterMark } = this

Callers

nothing calls this directly

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected