Replace ServerResponse.writeHeader() with writeHead()

Proprietary

ServerResponse.prototype.writeHeader() was an undocumented alias for writeHead() that was deprecated in Node.js 11 (DEP0063) and removed in Node.js 26. The signatures are identical.

org.openrewrite.node.migrate.http.replace-server-response-write-header
mod run . --recipe=org.openrewrite.node.migrate.http.replace-server-response-write-header

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