http: add new functions to OutgoingMessage
This PR adds various functions to allow more (official/public) access to the current headers for an outgoing HTTP message. It allows users to avoid having to access the private ._headers
property directly to get the same information.
/cc @nodejs/http
CI: https://ci.nodejs.org/job/node-test-pull-request/5975/
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
Affected core subsystem(s)
- http