-
Notifications
You must be signed in to change notification settings - Fork 30k
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: add information for IncomingMessage.destroy() #7237
Conversation
* `error` {Error} | ||
|
||
Calls `.destroy()` on the socket that received the `IncomingMessage`. If `error` | ||
is provided, an `'error'` event is fired and `error` is passed as an argument to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/fired/emitted
LGTM with a nit |
|
||
* `error` {Error} | ||
|
||
Calls `.destroy()` on the socket that received the `IncomingMessage`. If `error` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the .
from .destroy()
LGTM, also with a nit. |
Add documentation for `http.IncomingMessage.prototype.destroy()`. Fixes: nodejs#4226
Add documentation for `http.IncomingMessage.prototype.destroy()`. PR-URL: nodejs#7237 Fixes: nodejs#4226 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Landed in 4f2aec3 |
@Trott is this relevant to v4.x? |
@thealphanerd Yes. |
Add documentation for `http.IncomingMessage.prototype.destroy()`. PR-URL: nodejs#7237 Fixes: nodejs#4226 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Checklist
Affected core subsystem(s)
doc http
Description of change
Add documentation for
http.IncomingMessage.prototype.destroy()
.Fixes: #4226