bun
bun copied to clipboard
7530 add http.server response attribute header
What does this PR do?
added support ServerResponse._header
full support light-my-request
fixes: https://github.com/oven-sh/bun/issues/7530
- [ ] Documentation or TypeScript types (it's okay to leave the rest blank in this case)
- [X] Code changes
How did you verify your code works?
- [X] I included a test for the new code, or existing tests cover it
- [X] I ran my tests locally and they pass (
bun-debug test test-file-name.test
) - [X] I ran
bun fmt
Node code: https://github.com/nodejs/node/blob/f820efe0851dd3c64d673156b037ce7e8648fd81/lib/_http_outgoing.js#L586
https://discord.com/channels/876711213126520882/888839314056839309/1187586872172621935
Jarred: This one should probably be done in native code. It's going to add quite a bit of overhead