Skip to content

Commit ff0e79d

Browse files
authored
http: move writeHeader to end-of-life
1 parent 5de368f commit ff0e79d

File tree

3 files changed

+4
-26
lines changed

3 files changed

+4
-26
lines changed

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,9 @@ instead.
16001600

16011601
<!-- YAML
16021602
changes:
1603+
- version: REPLACEME
1604+
pr-url: https://github.com/nodejs/node/pull/60635
1605+
description: End-of-Life.
16031606
- version: v25.0.0
16041607
pr-url: https://github.com/nodejs/node/pull/59060
16051608
description: Runtime deprecation.
@@ -1608,7 +1611,7 @@ changes:
16081611
description: Documentation-only deprecation.
16091612
-->
16101613

1611-
Type: Runtime
1614+
Type: End-of-Life
16121615

16131616
The `node:http` module `ServerResponse.prototype.writeHeader()` API is
16141617
deprecated. Please use `ServerResponse.prototype.writeHead()` instead.

lib/_http_server.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ const {
8484
} = require('internal/errors');
8585
const {
8686
assignFunctionName,
87-
deprecate,
8887
kEmptyObject,
8988
promisify,
9089
} = require('internal/util');
@@ -447,10 +446,6 @@ function writeHead(statusCode, reason, obj) {
447446
return this;
448447
}
449448

450-
ServerResponse.prototype.writeHeader = deprecate(ServerResponse.prototype.writeHead,
451-
'ServerResponse.prototype.writeHeader is deprecated.',
452-
'DEP0063');
453-
454449
function storeHTTPOptions(options) {
455450
this[kIncomingMessage] = options.IncomingMessage || IncomingMessage;
456451
this[kServerResponse] = options.ServerResponse || ServerResponse;

test/parallel/test-write-header.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)