MCPcopy Index your code
hub / github.com/nodejs/node / onUpgradeStreamError

Function onUpgradeStreamError

deps/undici/undici.js:8868–8875  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8866 }
8867 __name(failUpgradeStream, "failUpgradeStream");
8868 function onUpgradeStreamError() {
8869 const state = this[kRequestStreamState];
8870 if (typeof this.rstCode === "number" && this.rstCode !== 0) {
8871 failUpgradeStream(state, new InformationalError(`HTTP/2: "stream error" received - code ${this.rstCode}`));
8872 } else {
8873 failUpgradeStream(state, new InformationalError("HTTP/2: stream errored before response headers"));
8874 }
8875 }
8876 __name(onUpgradeStreamError, "onUpgradeStreamError");
8877 function onUpgradeStreamEnd() {
8878 failUpgradeStream(this[kRequestStreamState], new InformationalError("HTTP/2: stream half-closed (remote)"));

Callers

nothing calls this directly

Calls 1

failUpgradeStreamFunction · 0.70

Tested by

no test coverage detected