-
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
deprecate IncomingMessage 'aborted' event #15456
Comments
ping @nodejs/http |
At this point I think it would be enough to just remove it from the documentation but leave it in the code for backwards compat. |
I agree, it seems redundant but I think it doesn't cost us anything to maintain 1 line of code and 1 line of documentation. |
@lpinca: Other than users trying to figure out when to use what when reading the docs. |
@ronag is it confusing for you? If so can you please explain why? |
@lpinca: It adds a layer of complexity. It's already confusing in general when and what events will be emitted and in what order. Currently, I and my teammates have to read the node code for every event to try and understand how they work. The fewer events there are the easier it is. Having two events doing the same thing is weird and I've been trying to figure out the difference... which I assumed existed but it turns out it wasn't there. |
There has been no movement and we're unlikely to get rid of it as things stand. I'm going to close this for now but maybe we'll revisit at some point in the future if http gets a bit more attention. |
The
aborted
event onIncomingMessage
seems to do the exact same thing as theclose
event. I suggest thataborted
is deprecated for reduced complexity and ambiguousness.The text was updated successfully, but these errors were encountered: