MCPcopy
hub / github.com/nodejs/undici / onRequestStart

Method onRequestStart

lib/interceptor/response-error.js:22–30  ·  view source on GitHub ↗
(controller, context)

Source from the content-addressed store, hash-verified

20 }
21
22 onRequestStart (controller, context) {
23 this.#statusCode = 0
24 this.#contentType = null
25 this.#decoder = null
26 this.#headers = null
27 this.#body = ''
28
29 return super.onRequestStart(controller, context)
30 }
31
32 onResponseStart (controller, statusCode, headers, statusMessage) {
33 this.#statusCode = statusCode

Callers

nothing calls this directly

Calls 1

onRequestStartMethod · 0.65

Tested by

no test coverage detected