Skip to content

Commit 485d53e

Browse files
committed
http: move OutboundMessage.prototype.flush to EOL
API was deprecated long ago. Move to end of life and remove.
1 parent 99c8c6d commit 485d53e

File tree

3 files changed

+5
-43
lines changed

3 files changed

+5
-43
lines changed

doc/api/deprecations.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ However, the deprecation identifier will not be modified.
4444
### DEP0001: `http.OutgoingMessage.prototype.flush`
4545
<!-- YAML
4646
changes:
47+
- version: REPLACEME
48+
pr-url:https://github.com/nodejs/node/pull/31164
49+
description: End-of-Life
4750
- version:
4851
- v4.8.6
4952
- v6.12.0
@@ -54,9 +57,9 @@ changes:
5457
description: Runtime deprecation.
5558
-->
5659

57-
Type: Runtime
60+
Type: End-of-Life
5861

59-
The `OutgoingMessage.prototype.flush()` method is deprecated. Use
62+
`OutgoingMessage.prototype.flush()` has been removed. Use
6063
`OutgoingMessage.prototype.flushHeaders()` instead.
6164

6265
<a id="DEP0002"></a>

lib/_http_outgoing.js

-4
Original file line numberDiff line numberDiff line change
@@ -893,10 +893,6 @@ OutgoingMessage.prototype.flushHeaders = function flushHeaders() {
893893
this._send('');
894894
};
895895

896-
OutgoingMessage.prototype.flush = internalUtil.deprecate(function() {
897-
this.flushHeaders();
898-
}, 'OutgoingMessage.flush is deprecated. Use flushHeaders instead.', 'DEP0001');
899-
900896
OutgoingMessage.prototype.pipe = function pipe() {
901897
// OutgoingMessage should be write-only. Piping from it is disabled.
902898
this.emit('error', new ERR_STREAM_CANNOT_PIPE());

test/parallel/test-http-flush.js

-37
This file was deleted.

0 commit comments

Comments
 (0)