Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: type improvement of file http.md
`outgoingMessage.setHeader` and `outgoingMessage.getHeader` section
  • Loading branch information
samuel871211 committed May 6, 2025
commit 3998e6f936fac0524741ed2da7098a068e1b9703
4 changes: 2 additions & 2 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ added: v0.4.0
-->

* `name` {string} Name of header
* Returns: {string | undefined}
* Returns: {number | string | string\[] | undefined}

Gets the value of the HTTP header with the given name. If that header is not
set, the returned value will be `undefined`.
Expand Down Expand Up @@ -3273,7 +3273,7 @@ added: v0.4.0
-->

* `name` {string} Header name
* `value` {any} Header value
* `value` {number | string | string\[]} Header value
* Returns: {this}

Sets a single header value. If the header already exists in the to-be-sent
Expand Down