http2stream.priority(options)


稳定性: 0 - 已弃用:在 RFC 9113 中对优先级信号的支持已被弃用,并且在 Node.js 中不再受支持。

  • options <Object>
    • exclusive <boolean>trueparent 确认一个父流时,该流将成为父流的唯一直接依赖,而所有其他现有的依赖将成为该流的依赖。默认值: false
    • parent <number> 指定此流所依赖的流的数字标识符。
    • weight <number> 指定流相对于具有相同 parent 的其他流的相对依赖。该值为介于 1256(含)之间的数字。
    • silent <boolean>true 在本地更改优先级而不向连接的对等方发送 PRIORITY 帧时。

更新此 Http2Stream 实例的优先级。

🌐 Updates the priority for this Http2Stream instance.