Skip to content

Commit 204b76b

Browse files
committed
doc: writableFinished is true before 'finish'
1 parent 9949fbd commit 204b76b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/http.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,9 @@ added: REPLACEME
14731473

14741474
* {boolean}
14751475

1476-
Is `true` if all data has been flushed to the underlying system.
1476+
Is `true` if all data has been flushed to the underlying system and
1477+
immediately before the [`'finish'`][] event is emitted.
1478+
14771479

14781480
### response.writeContinue()
14791481
<!-- YAML
@@ -2191,6 +2193,7 @@ not abort the request or do anything besides add a `'timeout'` event.
21912193
[`agent.createConnection()`]: #http_agent_createconnection_options_callback
21922194
[`agent.getName()`]: #http_agent_getname_options
21932195
[`destroy()`]: #http_agent_destroy
2196+
[`'finish'`]: #http_event_finish
21942197
[`getHeader(name)`]: #http_request_getheader_name
21952198
[`http.Agent`]: #http_class_http_agent
21962199
[`http.ClientRequest`]: #http_class_http_clientrequest

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ added: v12.6.0
487487

488488
* {boolean}
489489

490-
Is `true` if after the [`'finish'`][] event has been emitted.
490+
Is set to `true` immediately before the [`'finish'`][] event is emitted.
491491

492492
##### writable.writableHighWaterMark
493493
<!-- YAML

0 commit comments

Comments
 (0)