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

Function onPriority

lib/internal/http2/core.js:647–659  ·  view source on GitHub ↗
(id, parent, weight, exclusive)

Source from the content-addressed store, hash-verified

645// on the stream object itself. Otherwise, forward it on to the
646// session (which may, in turn, forward it on to the server)
647function onPriority(id, parent, weight, exclusive) {
648 const session = this[kOwner];
649 if (session.destroyed)
650 return;
651 debugStream(id, session[kType],
652 'priority [parent: %d, weight: %d, exclusive: %s]',
653 parent, weight, exclusive);
654 const emitter = session[kState].streams.get(id) || session;
655 if (!emitter.destroyed) {
656 emitter[kUpdateTimer]();
657 emitter.emit('priority', id, parent, weight, exclusive);
658 }
659}
660
661// Called by the native layer when an error has occurred sending a
662// frame. This should be exceedingly rare.

Callers

nothing calls this directly

Calls 3

debugStreamFunction · 0.85
getMethod · 0.65
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…