-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
http - res.closed
#15523
Labels
feature request
Issues that request new features to be added to Node.js.
http
Issues or PRs related to the http subsystem.
Comments
This is why having an updated |
@mscdex: Could |
4 tasks
No, you can't rely on |
@mscdex: Which is why I also added |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature request
Issues that request new features to be added to Node.js.
http
Issues or PRs related to the http subsystem.
h2 compat has a great prop called
closed
which makes it easy to decide whether it is safe to callwriteHead
or not. I don't think there is anything corresponding in h1. Would be nice to have though?You can use
headersSent
. However, that will not work in the case where the connection was closed before headers were sent. Maybe #15285 would be enough? Not sure?The text was updated successfully, but these errors were encountered: