MCPcopy Create free account
hub / github.com/nodejs/node / onFinally

Method onFinally

deps/undici/src/lib/core/request.js:428–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426 }
427
428 onFinally () {
429 if (this.errorHandler) {
430 this.body.off('error', this.errorHandler)
431 this.errorHandler = null
432 }
433
434 if (this.endHandler) {
435 this.body.off('end', this.endHandler)
436 this.endHandler = null
437 }
438 }
439
440 addHeader (key, value) {
441 processHeader(this, key, value)

Callers 2

onResponseEndMethod · 0.95
onResponseErrorMethod · 0.95

Calls 1

offMethod · 0.45

Tested by

no test coverage detected