Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 93c2581

Browse filesBrowse files
authored
http: move writeHeader to end-of-life
PR-URL: #60635 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 00a8377 commit 93c2581
Copy full SHA for 93c2581

3 files changed

+4-26Lines changed: 4 additions & 26 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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.
Collapse file

‎lib/_http_server.js‎

Copy file name to clipboardExpand all lines: lib/_http_server.js
-5Lines 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;
Collapse file

‎test/parallel/test-write-header.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-write-header.js
-20Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.