Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0a2e2c

Browse filesBrowse files
benglrvagg
authored andcommitted
doc: message.header duplication correction
The old version of the text here was slightly incorrect, so it just defers the details to the section in which they're fully described. PR-URL: #3997 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com>
1 parent dd0d15f commit f0a2e2c
Copy full SHA for f0a2e2c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/http.markdown‎

Copy file name to clipboardExpand all lines: doc/api/http.markdown
+2-5Lines changed: 2 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ HTTP API is very low-level. It deals with stream handling and message
2525
parsing only. It parses a message into headers and body but it does not
2626
parse the actual headers or the body.
2727

28-
Defined headers that allow multiple values are concatenated with a `,`
29-
character, except for the `set-cookie` and `cookie` headers which are
30-
represented as an array of values. Headers such as `content-length`
31-
which can only have a single value are parsed accordingly, and only a
32-
single value is represented on the parsed object.
28+
See [message.headers][] for details on how duplicate headers are handled.
3329

3430
The raw headers as they were received are retained in the `rawHeaders`
3531
property, which is an array of `[key, value, key2, value2, ...]`. For
@@ -1083,6 +1079,7 @@ There are a few special headers that should be noted.
10831079
* Sending an Authorization header will override using the `auth` option
10841080
to compute basic authentication.
10851081

1082+
[message.headers][]: #http_message_headers
10861083
[constructor options]: #http_new_agent_options
10871084
[`destroy()`]: #http_agent_destroy
10881085
['checkContinue']: #http_event_checkcontinue

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.