Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Docs: Add guarantees about http request.abort #4409

@GeorgeBailey

Description

@GeorgeBailey

I was hoping that there would be language in the docs for http, something like "After a call to abort, no further events (error, response, data, end, etc) will be emitted on either the request or response objects."

I know that is not accurate, so please add to the docs what actually is accurate, and what actual handling I need to put in myself.

For now, I've been removing all the event listeners for error, response, data, end on both the request, and the response (if any) - adding back empty error handlers to prevent the 'unhandled exception' message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions