Skip to content

Commit 9d9b32e

Browse files
dnalborczyktargos
authored andcommitted
doc: fix for OutgoingMessage.prototype._headers/_headerNames
PR-URL: #27574 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 263e533 commit 9d9b32e

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

doc/api/deprecations.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ The `NODE_REPL_MODE` environment variable is used to set the underlying
13641364
removed. Please use `sloppy` instead.
13651365

13661366
<a id="DEP0066"></a>
1367-
### DEP0066: outgoingMessage.\_headers, outgoingMessage.\_headerNames
1367+
### DEP0066: OutgoingMessage.prototype.\_headers, OutgoingMessage.prototype.\_headerNames
13681368
<!-- YAML
13691369
changes:
13701370
- version: v12.0.0
@@ -1377,15 +1377,18 @@ changes:
13771377

13781378
Type: Runtime
13791379

1380-
The `http` module `outgoingMessage._headers` and `outgoingMessage._headerNames`
1381-
properties are deprecated. Use one of the public methods
1382-
(e.g. `outgoingMessage.getHeader()`, `outgoingMessage.getHeaders()`,
1383-
`outgoingMessage.getHeaderNames()`, `outgoingMessage.hasHeader()`,
1384-
`outgoingMessage.removeHeader()`, `outgoingMessage.setHeader()`) for working
1385-
with outgoing headers.
1386-
1387-
The `outgoingMessage._headers` and `outgoingMessage._headerNames` properties
1388-
were never documented as officially supported properties.
1380+
The `http` module `OutgoingMessage.prototype._headers` and
1381+
`OutgoingMessage.prototype._headerNames` properties are deprecated. Use one of
1382+
the public methods (e.g. `OutgoingMessage.prototype.getHeader()`,
1383+
`OutgoingMessage.prototype.getHeaders()`,
1384+
`OutgoingMessage.prototype.getHeaderNames()`,
1385+
`OutgoingMessage.prototype.hasHeader()`,
1386+
`OutgoingMessage.prototype.removeHeader()`,
1387+
`OutgoingMessage.prototype.setHeader()`) for working with outgoing headers.
1388+
1389+
The `OutgoingMessage.prototype._headers` and
1390+
`OutgoingMessage.prototype._headerNames` properties were never documented as
1391+
officially supported properties.
13891392

13901393
<a id="DEP0067"></a>
13911394
### DEP0067: OutgoingMessage.prototype.\_renderHeaders

0 commit comments

Comments
 (0)