Makes http(2) response.writehead return this#25974
Closed
qubyte wants to merge 7 commits intonodejs:masterfrom
qubyte:http-response-writehead-return-this
Closed
Makes http(2) response.writehead return this#25974qubyte wants to merge 7 commits intonodejs:masterfrom qubyte:http-response-writehead-return-this
qubyte wants to merge 7 commits intonodejs:masterfrom
qubyte:http-response-writehead-return-this
Conversation
qubyte
commented
Feb 7, 2019
lib/internal/http2/compat.js
Outdated
Contributor
Author
There was a problem hiding this comment.
I couldn't find the code which this refers to. The HTTP version of writeHead appears to have no explicit returns.
addaleax
approved these changes
Feb 7, 2019
Addresses PR feedback. Co-Authored-By: qubyte <mark.s.everitt@gmail.com>
Addresses PR feedback. Co-Authored-By: qubyte <mark.s.everitt@gmail.com>
vsemozhetbyt
reviewed
Feb 7, 2019
Contributor
vsemozhetbyt
left a comment
There was a problem hiding this comment.
Thank you. Some doc nits.
Addresses PR feedback. Co-Authored-By: qubyte <mark.s.everitt@gmail.com>
Addresses PR feedback. Co-Authored-By: qubyte <mark.s.everitt@gmail.com>
lpinca
approved these changes
Feb 7, 2019
Addresses PR feedback. Co-Authored-By: qubyte <mark.s.everitt@gmail.com>
Member
Member
Contributor
Author
|
Thanks for accepting! 😁 |
Merged
This was referenced Feb 15, 2019
Merged
BethGriggs
added a commit
that referenced
this pull request
Oct 22, 2019
Notable changes:
* crypto:
* add support for chacha20-poly1305 for AEAD (chux0519)
#24081
* increase maxmem range from 32 to 53 bits (Tobias Nießen)
#28799
* deps:
* update npm to 6.11.3 (claudiahdz)
#29430
* upgrade openssl sources to 1.1.1d (Sam Roberts)
#29921
* dns:
* remove dns.promises experimental warning (cjihrig)
#26592
* fs:
* remove experimental warning for fs.promises (Anna Henningsen)
#26581
* http:
* makes response.writeHead return the response (Mark S. Everitt)
#25974
* http2:
* makes response.writeHead return the response (Mark S. Everitt)
#25974
* n-api:
* make func argument of napi\_create\_threadsafe\_function optional
(legendecas)
#27791
* mark version 5 N-APIs as stable (Gabriel Schulhof)
#29401
* implement date object (Jarrod Connolly)
#25917
* process:
* add --unhandled-rejections flag (Ruben Bridgewater)
#26599
* stream:
* implement Readable.from async iterator utility (Guy Bedford)
#27660
* make Symbol.asyncIterator support stable (Matteo Collina)
#26989
PR-URL: #29875
BethGriggs
added a commit
that referenced
this pull request
Oct 22, 2019
Notable changes:
* crypto:
* add support for chacha20-poly1305 for AEAD (chux0519)
#24081
* increase maxmem range from 32 to 53 bits (Tobias Nießen)
#28799
* deps:
* update npm to 6.11.3 (claudiahdz)
#29430
* upgrade openssl sources to 1.1.1d (Sam Roberts)
#29921
* dns:
* remove dns.promises experimental warning (cjihrig)
#26592
* fs:
* remove experimental warning for fs.promises (Anna Henningsen)
#26581
* http:
* makes response.writeHead return the response (Mark S. Everitt)
#25974
* http2:
* makes response.writeHead return the response (Mark S. Everitt)
#25974
* n-api:
* make func argument of napi\_create\_threadsafe\_function optional
(legendecas)
#27791
* mark version 5 N-APIs as stable (Gabriel Schulhof)
#29401
* implement date object (Jarrod Connolly)
#25917
* process:
* add --unhandled-rejections flag (Ruben Bridgewater)
#26599
* stream:
* implement Readable.from async iterator utility (Guy Bedford)
#27660
* make Symbol.asyncIterator support stable (Matteo Collina)
#26989
PR-URL: #29875
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #25935.
I chose in the end to go with the lightest touch and only update
writeHead(this is the most useful to change in my experience). I'm happy to extend this tores.setHeadertoo, but it may suggest updating other similar methods (flushHeaders,removeHeader, etc.)Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes