Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e111d71

Browse filesBrowse files
watsoncodebytere
authored andcommitted
doc: document http request.finished boolean
PR-URL: #24319 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 1ca3c9d commit e111d71
Copy full SHA for e111d71

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+12Lines changed: 12 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,17 @@ If `data` is specified, it is equivalent to calling
569569
If `callback` is specified, it will be called when the request stream
570570
is finished.
571571

572+
### request.finished
573+
<!-- YAML
574+
added: v0.0.1
575+
-->
576+
577+
* {boolean}
578+
579+
The `request.finished` property will be `true` if [`request.end()`][]
580+
has been called. `request.end()` will automatically be called if the
581+
request was initiated via [`http.get()`][].
582+
572583
### request.flushHeaders()
573584
<!-- YAML
574585
added: v1.6.0
@@ -2106,6 +2117,7 @@ not abort the request or do anything besides add a `'timeout'` event.
21062117
[`http.ClientRequest`]: #http_class_http_clientrequest
21072118
[`http.IncomingMessage`]: #http_class_http_incomingmessage
21082119
[`http.Server`]: #http_class_http_server
2120+
[`http.get()`]: #http_http_get_options_callback
21092121
[`http.globalAgent`]: #http_http_globalagent
21102122
[`http.request()`]: #http_http_request_options_callback
21112123
[`message.headers`]: #http_message_headers

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.