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
feat: add rawHeaders to IncomingMessage #31853
feat: add rawHeaders to IncomingMessage #31853
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
@ckerr , FYI, I attempted to tag @electron/wg-api as suggested but I think I'm not able to do so since I'm not on the electron team. Feel free to edit my description with a working tag, or just as a comment. Thanks! |
@codebytere @ckerr I'm digging into the implementation for this and I think I'm at a crossroads for how to go about this. I'd like to solicit y'all's feedback before choosing an option. It looks like the headers are getting lowercased on the C++ side of things: Which means that the
Personally I'm partial to option 2 since |
Turns out |
b75e272
to
4a2795c
Compare
4a2795c
to
721ecb8
Compare
So turns out the lowercasing was being done in |
I think this is now ready for review? Only thing left it seems is to update typings for |
@codebytere @ckerr any tips on how to get the electron.d.ts updated so my CI/CD builds can pass? |
Just a notice that this organization won't have much activity this month, so review might have to wait until next month. |
@zcbenz thanks for letting me know. Happy holidays to you and all the other maintainers! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MRayermannMSFT the typings get automatically generated from the documentation. I think the typing didn't get generated properly because the markdown needed an additional #
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API LGTM
API LGTM |
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
* Add response.rawHeaders to docs for IncomingMessage * Remove trailing spaces * Implement raw headers, add tests * Fix lint issues * Add example from NodeJS docs * Fix lint issue in doc example * Add missing #
Description of Change
The goal of this change is to add a
rawHeaders
toIncomingMessage
, similar to how Node'shttp.IncomingMessage
has arawHeaders
. Related to #31531. (Note: link to Node docs may not scroll to the right spot)I am initially opening this PR as a draft in order to get review and approval.
cc @electron/wg-api
Checklist
npm test
passesRelease Notes
Notes: Added rawHeaders to IncomingMessage.