doc: fix for OutgoingMessage.prototype._headers/_headerNames
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
9b7cd2b1bb
commit
91ec5bf7ba
@ -1364,7 +1364,7 @@ The `NODE_REPL_MODE` environment variable is used to set the underlying
|
|||||||
removed. Please use `sloppy` instead.
|
removed. Please use `sloppy` instead.
|
||||||
|
|
||||||
<a id="DEP0066"></a>
|
<a id="DEP0066"></a>
|
||||||
### DEP0066: outgoingMessage.\_headers, outgoingMessage.\_headerNames
|
### DEP0066: OutgoingMessage.prototype.\_headers, OutgoingMessage.prototype.\_headerNames
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
changes:
|
changes:
|
||||||
- version: v12.0.0
|
- version: v12.0.0
|
||||||
@ -1377,15 +1377,18 @@ changes:
|
|||||||
|
|
||||||
Type: Runtime
|
Type: Runtime
|
||||||
|
|
||||||
The `http` module `outgoingMessage._headers` and `outgoingMessage._headerNames`
|
The `http` module `OutgoingMessage.prototype._headers` and
|
||||||
properties are deprecated. Use one of the public methods
|
`OutgoingMessage.prototype._headerNames` properties are deprecated. Use one of
|
||||||
(e.g. `outgoingMessage.getHeader()`, `outgoingMessage.getHeaders()`,
|
the public methods (e.g. `OutgoingMessage.prototype.getHeader()`,
|
||||||
`outgoingMessage.getHeaderNames()`, `outgoingMessage.hasHeader()`,
|
`OutgoingMessage.prototype.getHeaders()`,
|
||||||
`outgoingMessage.removeHeader()`, `outgoingMessage.setHeader()`) for working
|
`OutgoingMessage.prototype.getHeaderNames()`,
|
||||||
with outgoing headers.
|
`OutgoingMessage.prototype.hasHeader()`,
|
||||||
|
`OutgoingMessage.prototype.removeHeader()`,
|
||||||
|
`OutgoingMessage.prototype.setHeader()`) for working with outgoing headers.
|
||||||
|
|
||||||
The `outgoingMessage._headers` and `outgoingMessage._headerNames` properties
|
The `OutgoingMessage.prototype._headers` and
|
||||||
were never documented as officially supported properties.
|
`OutgoingMessage.prototype._headerNames` properties were never documented as
|
||||||
|
officially supported properties.
|
||||||
|
|
||||||
<a id="DEP0067"></a>
|
<a id="DEP0067"></a>
|
||||||
### DEP0067: OutgoingMessage.prototype.\_renderHeaders
|
### DEP0067: OutgoingMessage.prototype.\_renderHeaders
|
||||||
|
Loading…
x
Reference in New Issue
Block a user