8000 http: move writeHeader to end-of-life by bjohansebas · Pull Request #60635 · nodejs/node · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,9 @@ instead.

<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/60635
description: End-of-Life.
- version: v25.0.0
pr-url: https://github.com/nodejs/node/pull/59060
description: Runtime deprecation.
8000 Expand All @@ -1608,7 +1611,7 @@ changes:
description: Documentation-only deprecation.
-->

Type: Runtime
Type: End-of-Life

The `node:http` module `ServerResponse.prototype.writeHeader()` API is
deprecated. Please use `ServerResponse.prototype.writeHead()` instead.
Expand Down
5 changes: 0 additions & 5 deletions lib/_http_server.js
86F8
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const {
} = require('internal/errors');
const {
assignFunctionName,
deprecate,
kEmptyObject,
promisify,
} = require('internal/util');
Expand Down Expand Up @@ -447,10 +446,6 @@ function writeHead(statusCode, reason, obj) {
return this;
}

ServerResponse.prototype.writeHeader = deprecate(ServerResponse.prototype.writeHead,
'ServerResponse.prototype.writeHeader is deprecated.',
'DEP0063');

function storeHTTPOptions(options) {
this[kIncomingMessage] = options.IncomingMessage || IncomingMessage;
this[kServerResponse] = options.ServerResponse || ServerResponse;
Expand Down
20 changes: 0 additions & 20 deletions test/parallel/test-write-header.js

This file was deleted.

Loading
0