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

Method onFinally

deps/undici/undici.js:3031–3040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3029 return this[kHandler].onResponseError?.(controller, error);
3030 }
3031 onFinally() {
3032 if (this.errorHandler) {
3033 this.body.off("error", this.errorHandler);
3034 this.errorHandler = null;
3035 }
3036 if (this.endHandler) {
3037 this.body.off("end", this.endHandler);
3038 this.endHandler = null;
3039 }
3040 }
3041 addHeader(key, value) {
3042 processHeader(this, key, value);
3043 return this;

Callers 2

onResponseEndMethod · 0.45
onResponseErrorMethod · 0.45

Calls 1

offMethod · 0.45

Tested by

no test coverage detected