Skip to content

doc: http.ServerResponse close event #30489

Description

@brainsiq
  • Version: 12.x

In the version 10 documentation it states that the 'close' event is emitted on a response when the connection is terminated before the response has ended.

In the version 12 documentation it simply states that the connection was terminated. This does not seem consistent with the behaviour I have seen, where the event is actually emitted at the end of each response, which I have also found described in a commit introduced in version 11.

Can you clarify that the event in version 12 is in fact emitted at the end of each response, in which case I would be happy to submit a PR to update the docs.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    httpIssues and PRs related to the http subsystem.
    on Nov 17, 2019
  2. jasnell commented on Jul 6, 2020

    @jasnell
    Member

    /cc @nodejs/http

  3. avivkeller commented on Jun 28, 2024

    @avivkeller
    Member

    Hi! Both these versions have reached EoL, so I don't think this issue needs to remain open. If someone agrees, feel free to close, but In case someone disagrees, I'm leaving this open (for now).

  4. github-actions commented on Jun 27, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. github-actions commented on Jul 28, 2026

    @github-actions
    Contributor

    This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
    If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.httpIssues and PRs related to the http subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions