Makes http(2) response.writehead return this
Addresses #25935 (closed).
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 to res.setHeader
too, but it may suggest updating other similar methods (flushHeaders
, removeHeader
, etc.)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines