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

Method onResponseError

lib/interceptor/dump.js:55–64  ·  view source on GitHub ↗
(controller, err)

Source from the content-addressed store, hash-verified

53 }
54
55 onResponseError (controller, err) {
56 if (this.#dumped) {
57 return
58 }
59
60 // On network errors before connect, controller will be null
61 err = this.#controller?.reason ?? err
62
63 super.onResponseError(controller, err)
64 }
65
66 onResponseData (controller, chunk) {
67 this.#size = this.#size + chunk.length

Callers

nothing calls this directly

Calls 1

onResponseErrorMethod · 0.65

Tested by

no test coverage detected