Skip to content

http - http.ClientRequest doesn't emit 'aborted'? #15259

Description

@ronag

Looking through the _http_client.js code it seems to me that the http.ClientRequest object never emits an ´aborted´ event (only close). It's just the response object that emits the aborted event.

https://github.com/nodejs/node/blob/master/lib/_http_client.js#L366

That seems to go against the docs, https://nodejs.org/api/http.html#http_event_aborted

Activity

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.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions