MCPcopy
hub / github.com/nodejs/undici / onFrameError

Function onFrameError

lib/dispatcher/client-h2.js:1225–1231  ·  view source on GitHub ↗
(type, code)

Source from the content-addressed store, hash-verified

1223}
1224
1225function 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
1233function onAborted () {
1234 this.off('data', onData)

Callers

nothing calls this directly

Calls 2

offMethod · 0.80
abortMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…