Skip to content

Commit

Permalink
doc: fix added: info for some methods
Browse files Browse the repository at this point in the history
`outgoingMessage.getHeader()`, `outgoingMessage.getHeaderNames()`, and
`outgoingMessage.getHeaders()` were added to Node.js v8.0.0 and
backported to Node.js v7.7.0 via 3e8d43d.
  • Loading branch information
lpinca committed Apr 8, 2022
1 parent dfc2dc8 commit c6767c2
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,9 @@ const setCookie = response.getHeader('set-cookie');
### `response.getHeaderNames()`

<!-- YAML
added: v7.7.0
added:
- v8.0.0
- v7.7.0
-->

* Returns: {string\[]}
Expand All @@ -1678,7 +1680,9 @@ const headerNames = response.getHeaderNames();
### `response.getHeaders()`

<!-- YAML
added: v7.7.0
added:
- v8.0.0
- v7.7.0
-->

* Returns: {Object}
Expand All @@ -1705,7 +1709,9 @@ const headers = response.getHeaders();
### `response.hasHeader(name)`

<!-- YAML
added: v7.7.0
added:
- v8.0.0
- v7.7.0
-->

* `name` {string}
Expand Down Expand Up @@ -2579,7 +2585,9 @@ exist in message, it will be `undefined`.
### `outgoingMessage.getHeaderNames()`

<!-- YAML
added: v8.0.0
added:
- v8.0.0
- v7.7.0
-->

* Returns {string\[]}
Expand All @@ -2590,7 +2598,9 @@ names are lowercase.
### `outgoingMessage.getHeaders()`

<!-- YAML
added: v8.0.0
added:
- v8.0.0
- v7.7.0
-->

* Returns: {Object}
Expand All @@ -2617,7 +2627,9 @@ const headers = outgoingMessage.getHeaders();
### `outgoingMessage.hasHeader(name)`

<!-- YAML
added: v8.0.0
added:
- v8.0.0
- v7.7.0
-->

* `name` {string}
Expand Down

0 comments on commit c6767c2

Please sign in to comment.