(type, code)
| 1223 | } |
| 1224 | |
| 1225 | function onFrameError (type, code) { |
| 1226 | const stream = this |
| 1227 | const state = stream[kRequestStreamState] |
| 1228 | |
| 1229 | stream.off('frameError', onFrameError) |
| 1230 | state.abort(new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)) |
| 1231 | } |
| 1232 | |
| 1233 | function onAborted () { |
| 1234 | this.off('data', onData) |