Skip to content

Commit 9c14a3f

Browse files
committed
http2: deprecate priority
Signed-off-by: Matteo Collina <[email protected]>
1 parent 5f841fb commit 9c14a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/http2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,7 @@ numeric stream identifier.
14571457

14581458
<!-- YAML
14591459
added: v8.4.0
1460+
deprecated: REPLACEME
14601461
-->
14611462

14621463
* `options` {Object}
@@ -1473,6 +1474,8 @@ added: v8.4.0
14731474
sending a `PRIORITY` frame to the connected peer.
14741475

14751476
Updates the priority for this `Http2Stream` instance.
1477+
The support for priority weights has been removed in [latest versions of nghttp2 (1.65.0)][nghttp2-priority],
1478+
and therefore this method is deprecated.
14761479

14771480
#### `http2stream.rstCode`
14781481

@@ -1585,6 +1588,8 @@ Provides miscellaneous information about the current state of the
15851588
instances that depend on this `Http2Stream` as specified using
15861589
`PRIORITY` frames.
15871590
* `weight` {number} The priority weight of this `Http2Stream`.
1591+
The support for priority weights has been removed in [latest versions of nghttp2 (1.65.0)][nghttp2-priority],
1592+
and therefore this property is deprecated and it should be ignored.
15881593

15891594
A current state of this `Http2Stream`.
15901595

@@ -4929,3 +4934,4 @@ you need to implement any fall-back behavior yourself.
49294934
[`tls.createServer()`]: tls.md#tlscreateserveroptions-secureconnectionlistener
49304935
[`writable.writableFinished`]: stream.md#writablewritablefinished
49314936
[error code]: #error-codes-for-rst_stream-and-goaway
4937+
[nghttp2-priority]: https://github.com/nghttp2/nghttp2/releases/tag/v1.65.0

0 commit comments

Comments
 (0)