Skip to content

Commit 38845b3

Browse files
committed
http: add doc-only deprecation for headers/trailers setters
Ref: #45571
1 parent 3bed5f1 commit 38845b3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/api/deprecations.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,6 +3318,22 @@ Type: Runtime
33183318
might result in host name spoofing with unexpected input. These URLs will throw
33193319
an error in future versions of Node.js, as the [WHATWG URL API][] does already.
33203320

3321+
### DEP0171: Setters for `http.IncomingMessage` headers and trailiers
3322+
3323+
<!-- YAML
3324+
changes:
3325+
- version:
3326+
- REPLACEME
3327+
pr-url: https://github.com/nodejs/node/pull/45695
3328+
description: Documentation-only deprecation.
3329+
-->
3330+
3331+
Type: Documentation-only
3332+
3333+
In a future version of Node.js, [`message.headers`][],
3334+
[`message.headersDistinct`][], [`message.trailers`][], and
3335+
[`message.trailersDistinct`][] will be read-only.
3336+
33213337
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
33223338
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
33233339
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3394,7 +3410,11 @@ an error in future versions of Node.js, as the [WHATWG URL API][] does already.
33943410
[`https.get()`]: https.md#httpsgetoptions-callback
33953411
[`https.request()`]: https.md#httpsrequestoptions-callback
33963412
[`message.connection`]: http.md#messageconnection
3413+
[`message.headersDistinct`]: http.md#messageheadersdistinct
3414+
[`message.headers`]: http.md#messageheaders
33973415
[`message.socket`]: http.md#messagesocket
3416+
[`message.trailersDistinct`]: http.md#messagetrailersdistinct
3417+
[`message.trailers`]: http.md#messagetrailers
33983418
[`module.createRequire()`]: module.md#modulecreaterequirefilename
33993419
[`os.networkInterfaces()`]: os.md#osnetworkinterfaces
34003420
[`os.tmpdir()`]: os.md#ostmpdir

0 commit comments

Comments
 (0)