http2stream.priority(options)
¥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> 当true和parent标识父流时,此流将成为父流的唯一直接依赖,所有其他现有依赖都成为此流的依赖。默认值:false。¥
exclusive<boolean> Whentrueandparentidentifies 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的其他流的相对依赖。该值为1到256(含)之间的数字。¥
weight<number> Specifies the relative dependency of a stream in relation to other streams with the sameparent. The value is a number between1and256(inclusive). -
silent<boolean> 当为true时,本地改变优先级,而不向连接的对端发送PRIORITY帧。¥
silent<boolean> Whentrue, changes the priority locally without sending aPRIORITYframe to the connected peer.
-
更新此 Http2Stream 实例的优先级。
¥Updates the priority for this Http2Stream instance.