GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http: move writeHeader to end-of-life · nodejs/node@93c2581

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • deprecations.md
  • lib
    • _http_server.js
  • test/parallel
    • test-write-header.js
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.