Replace OutgoingMessage._headers and ._headerNames with public methods

Proprietary

Replace deprecated OutgoingMessage.prototype._headers with getHeaders(), setHeader(), removeHeader() and OutgoingMessage.prototype._headerNames with getHeaderNames() to address DEP0066 deprecation.

org.openrewrite.node.migrate.http.replace-outgoing-message-headers
mod run . --recipe=org.openrewrite.node.migrate.http.replace-outgoing-message-headers

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.