Skip to content

Commit 5fb3871

Browse files
mcollinaaduh95
authored andcommitted
doc: deprecate HTTP/2 priority weights
Signed-off-by: Matteo Collina <[email protected]>
1 parent 5f841fb commit 5fb3871

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

doc/api/deprecations.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,6 +3918,20 @@ Type: Runtime
39183918
The `node:_tls_common` and `node:_tls_wrap` modules are deprecated as they should be considered
39193919
an internal nodejs implementation rather than a public facing API, use `node:tls` instead.
39203920

3921+
### DEP0193: `require('node:http2').Http2Stream.priority`
3922+
3923+
<!-- YAML
3924+
changes:
3925+
- version: REPLACEME
3926+
pr-url: https://github.com/nodejs/node/pull/58313
3927+
description: Documentation-only deprecation.
3928+
-->
3929+
3930+
Type: Documentation-only
3931+
3932+
The support for priority weights has been deprecated in the [RFC 9113][], and
3933+
will be removed in future versions of Node.js.
3934+
39213935
[DEP0142]: #dep0142-repl_builtinlibs
39223936
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
39233937
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3

doc/api/http2.md

Lines changed: 10 additions & 2 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}
@@ -1474,6 +1475,9 @@ added: v8.4.0
14741475

14751476
Updates the priority for this `Http2Stream` instance.
14761477

1478+
The support for priority weights has been deprecated in the [RFC 9113][], and
1479+
will be removed in future versions of Node.js.
1480+
14771481
#### `http2stream.rstCode`
14781482

14791483
<!-- YAML
@@ -1583,8 +1587,11 @@ Provides miscellaneous information about the current state of the
15831587
remotely.
15841588
* `sumDependencyWeight` {number} The sum weight of all `Http2Stream`
15851589
instances that depend on this `Http2Stream` as specified using
1586-
`PRIORITY` frames.
1587-
* `weight` {number} The priority weight of this `Http2Stream`.
1590+
`PRIORITY` frames. This has been **deprecated** in [RFC 9113][], and
1591+
support for it will be removed in future versions of Node.js.
1592+
* `weight` {number} The priority weight of this `Http2Stream`. This has been
1593+
**deprecated** in [RFC 9113][], and support for it will be removed in future
1594+
versions of Node.js.
15881595

15891596
A current state of this `Http2Stream`.
15901597

@@ -4929,3 +4936,4 @@ you need to implement any fall-back behavior yourself.
49294936
[`tls.createServer()`]: tls.md#tlscreateserveroptions-secureconnectionlistener
49304937
[`writable.writableFinished`]: stream.md#writablewritablefinished
49314938
[error code]: #error-codes-for-rst_stream-and-goaway
4939+
[RFC 9113]: https://datatracker.ietf.org/doc/html/rfc9113#section-5.3.1

0 commit comments

Comments
 (0)