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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -1600,6 +1600,9 @@ instead. |
1600 | 1600 |
|
1601 | 1601 | <!-- YAML |
1602 | 1602 | changes: |
| 1603 | + - version: REPLACEME |
| 1604 | + pr-url: https://github.com/nodejs/node/pull/60635 |
| 1605 | + description: End-of-Life. |
1603 | 1606 | - version: v25.0.0 |
1604 | 1607 | pr-url: https://github.com/nodejs/node/pull/59060 |
1605 | 1608 | description: Runtime deprecation. |
@@ -1608,7 +1611,7 @@ changes: |
1608 | 1611 | description: Documentation-only deprecation. |
1609 | 1612 | --> |
1610 | 1613 |
|
1611 | | -Type: Runtime |
| 1614 | +Type: End-of-Life |
1612 | 1615 |
|
1613 | 1616 | The `node:http` module `ServerResponse.prototype.writeHeader()` API is |
1614 | 1617 | deprecated. Please use `ServerResponse.prototype.writeHead()` instead. |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/_http_server.js -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -84,7 +84,6 @@ const { |
84 | 84 | } = require('internal/errors'); |
85 | 85 | const { |
86 | 86 | assignFunctionName, |
87 | | - deprecate, |
88 | 87 | kEmptyObject, |
89 | 88 | promisify, |
90 | 89 | } = require('internal/util'); |
@@ -447,10 +446,6 @@ function writeHead(statusCode, reason, obj) { |
447 | 446 | return this; |
448 | 447 | } |
449 | 448 |
|
450 | | -ServerResponse.prototype.writeHeader = deprecate(ServerResponse.prototype.writeHead, |
451 | | - 'ServerResponse.prototype.writeHeader is deprecated.', |
452 | | - 'DEP0063'); |
453 | | - |
454 | 449 | function storeHTTPOptions(options) { |
455 | 450 | this[kIncomingMessage] = options.IncomingMessage || IncomingMessage; |
456 | 451 | this[kServerResponse] = options.ServerResponse || ServerResponse; |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-write-header.js -20Lines changed: 0 additions & 20 deletions