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