()
| 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)")); |
nothing calls this directly
no test coverage detected