How to cancel an HTTP request in Node.js

Examples for the article How to cancel an HTTP request in Node.js.

Requirements

  • Node.js >= v16.0.0

Usage

Install the required dependencies:

npm install

You can then run any example directly with node e.g.

node example-abort-api.mjs

Examples

License

MIT