http2stream.priority(options)


稳定性: 0 - 已弃用:RFC 9113 中已弃用优先级信号支持,Node.js 也不再支持该功能。

¥Stability: 0 - Deprecated: support for priority signaling has been deprecated in the RFC 9113 and is no longer supported in Node.js.

  • options <Object>

    • exclusive <boolean>trueparent 标识父流时,此流将成为父流的唯一直接依赖,所有其他现有依赖都成为此流的依赖。默认值:false

      ¥exclusive <boolean> When true and parent identifies a parent Stream, this stream is made the sole direct dependency of the parent, with all other existing dependents made a dependent of this stream. Default: false.

    • parent <number> 指定此流所依赖的流的数字标识符。

      ¥parent <number> Specifies the numeric identifier of a stream this stream is dependent on.

    • weight <number> 指定流相对于具有相同 parent 的其他流的相对依赖。该值为 1256(含)之间的数字。

      ¥weight <number> Specifies the relative dependency of a stream in relation to other streams with the same parent. The value is a number between 1 and 256 (inclusive).

    • silent <boolean> 当为 true 时,本地改变优先级,而不向连接的对端发送 PRIORITY 帧。

      ¥silent <boolean> When true, changes the priority locally without sending a PRIORITY frame to the connected peer.

更新此 Http2Stream 实例的优先级。

¥Updates the priority for this Http2Stream instance.