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

Method onRequestStart

lib/api/api-stream.js:117–128  ·  view source on GitHub ↗
(controller, context)

Source from the content-addressed store, hash-verified

115 }
116
117 onRequestStart (controller, context) {
118 if (this.reason) {
119 controller.abort(this.reason)
120 return
121 }
122
123 assert(this.callback)
124
125 this.controller = controller
126 this.abort = (reason) => controller.abort(reason)
127 this.context = context
128 }
129
130 onResponseStart (controller, statusCode, headers, _statusMessage) {
131 const { factory, opaque, context, responseHeaders } = this

Callers

nothing calls this directly

Calls 1

abortMethod · 0.65

Tested by

no test coverage detected