Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: clarify duplicate headers in http.IncomingMessage #3810

Closed
wants to merge 1 commit into from

Conversation

bengl
Copy link
Member

@bengl bengl commented Nov 13, 2015

The headers object on http.IncomingMessage deals with duplicate headers in different ways depending on the header, and this wasn't documented (AFAIK), so here's a go at fixing that. The list is grabbed directly from source.

Also happy to split the list out into a <ul> if that's more desirable.

@silverwind silverwind added http Issues or PRs related to the http subsystem. doc Issues and PRs related to the documentations. labels Nov 13, 2015
In particular, for `content-type`, `content-length`, `user-agent`, `referer`,
`host`, `authorization`, `proxy-authorization`, `if-modified-since`,
`if-unmodified-since`, `from`, `location`, `max-forwards`, `retry-after`,
`etag`, `last-modified`, `age`, or `expires` the duplicate header values are
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about sorting it alphabetically?

@bengl
Copy link
Member Author

bengl commented Nov 13, 2015

@cjihrig @silverwind OK I changed it based on your comments.

@cjihrig
Copy link
Contributor

cjihrig commented Nov 13, 2015

LGTM

1 similar comment
@jasnell
Copy link
Member

jasnell commented Nov 13, 2015

LGTM

cjihrig pushed a commit that referenced this pull request Nov 13, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@cjihrig
Copy link
Contributor

cjihrig commented Nov 13, 2015

Thanks! Landed in 4008961

@cjihrig cjihrig closed this Nov 13, 2015
Fishrock123 pushed a commit that referenced this pull request Nov 17, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 17, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@MylesBorins
Copy link
Contributor

landed in v4.x-staging as 0c5429a

rvagg pushed a commit that referenced this pull request Dec 4, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@jasnell jasnell mentioned this pull request Dec 17, 2015
jasnell pushed a commit that referenced this pull request Dec 17, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
jasnell pushed a commit that referenced this pull request Dec 23, 2015
This commit documents how duplicate HTTP headers are handled.

PR-URL: #3810
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants