http2stream.priority(options)


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

更新此 Http2Stream 实例的优先级。

  • options <Object>
    • 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> Specifies the numeric identifier of a stream this stream is dependent on.
    • 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> When true, changes the priority locally without sending a PRIORITY frame to the connected peer.

Updates the priority for this Http2Stream instance.