-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
doc: deprecate finished #28679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: deprecate finished #28679
Changes from 4 commits
ff98ad5
e1408d3
fffc596
53add50
4d8bfdf
7b70641
39be20a
2fa2ec6
11337b6
dcd3724
476d612
60c6119
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2518,6 +2518,27 @@ Type: Documentation-only | |
Prefer [`response.socket`][] over [`response.connection`] and | ||
[`request.socket`][] over [`request.connection`]. | ||
|
||
<a id="DEP0XXX"></a> | ||
### DEP0XXX: http finished | ||
<!-- YAML | ||
changes: | ||
- version: REPLACEME | ||
pr-url: https://github.com/nodejs/node/pull/28679 | ||
description: Documentation-only deprecation. | ||
--> | ||
|
||
Type: Documentation-only | ||
|
||
[`response.finished`][] indicates whether [`response.end()`] has been | ||
ronag marked this conversation as resolved.
Show resolved
Hide resolved
|
||
called and [`response.writableEnded`][] is `true`, not whether the underlying | ||
ronag marked this conversation as resolved.
Show resolved
Hide resolved
|
||
data has been flushed, `'finish'` has been emitted and | ||
[`response.writableFinished`][] is `true`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is somewhat difficult to read for me. I might not have enough knowledge about the exact functionality but without further context, it seems quite hard to follow. I understand the first part of the sentence but the second part is not absolute clear to me. Especially due to the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, but that does not seem immediately clear for me from the current description. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, any suggestion on improvement? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am sorry but I do not know the underlying behavior well enough to give a recommendation in this case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sounds better to me! Just the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about now? |
||
|
||
Use [`response.writableFinished`][] or [`response.writableEnded`][] | ||
accordingly instead to avoid the ambigiuty. | ||
|
||
To maintain existing functionality use [`response.writableEnded`][]. | ||
ronag marked this conversation as resolved.
Show resolved
Hide resolved
ronag marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[`--pending-deprecation`]: cli.html#cli_pending_deprecation | ||
[`--throw-deprecation`]: cli.html#cli_throw_deprecation | ||
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size | ||
|
@@ -2576,6 +2597,9 @@ Prefer [`response.socket`][] over [`response.connection`] and | |
[`request.connection`]: http.html#http_request_connection | ||
[`response.socket`]: http.html#http_response_socket | ||
[`response.connection`]: http.html#http_response_connection | ||
[`response.finished`]: #http_response_finished | ||
[`response.writableFinished`]: #http_response_writablefinished | ||
[`response.writableEnded`]: #http_response_writableended | ||
[`script.createCachedData()`]: vm.html#vm_script_createcacheddata | ||
[`setInterval()`]: timers.html#timers_setinterval_callback_delay_args | ||
[`setTimeout()`]: timers.html#timers_settimeout_callback_delay_args | ||
|
Uh oh!
There was an error while loading. Please reload this page.