Skip to content

Commit 0ac6d28

Browse files
ronagtargos
authored andcommitted
doc: writableFinished is true before 'finish'
PR-URL: #28811 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent c389526 commit 0ac6d28

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
@@ -1478,7 +1478,9 @@ added: v12.7.0
14781478

14791479
* {boolean}
14801480

1481-
Is `true` if all data has been flushed to the underlying system.
1481+
Is `true` if all data has been flushed to the underlying system, immediately
1482+
before the [`'finish'`][] event is emitted.
1483+
14821484

14831485
### response.writeContinue()
14841486
<!-- YAML
@@ -2197,6 +2199,7 @@ not abort the request or do anything besides add a `'timeout'` event.
21972199
[`agent.createConnection()`]: #http_agent_createconnection_options_callback
21982200
[`agent.getName()`]: #http_agent_getname_options
21992201
[`destroy()`]: #http_agent_destroy
2202+
[`'finish'`]: #http_event_finish
22002203
[`getHeader(name)`]: #http_request_getheader_name
22012204
[`http.Agent`]: #http_class_http_agent
22022205
[`http.ClientRequest`]: #http_class_http_clientrequest

doc/api/stream.md

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

497497
* {boolean}
498498

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

501501
##### writable.writableHighWaterMark
502502
<!-- YAML

0 commit comments

Comments
 (0)