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.】