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

Method onRequestStart

lib/handler/cache-handler.js:170–174  ·  view source on GitHub ↗
(controller, context)

Source from the content-addressed store, hash-verified

168 }
169
170 onRequestStart (controller, context) {
171 this.#writeStream?.destroy()
172 this.#writeStream = undefined
173 this.#handler.onRequestStart?.(controller, context)
174 }
175
176 onBodySent (chunk) {
177 this.#handler.onBodySent?.(chunk)

Callers

nothing calls this directly

Calls 2

onRequestStartMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected