← All repos

on-finished

Execute a callback when a request closes, finishes, or errors

eventfinishedhttpjavascriptnodejs
Browse cluster: Node.js HTTP utilities & middleware
302commits
14contributors
1languages

Tech stack & purpose

on-finished is a Node.js module that executes a callback when an HTTP request or response closes, finishes, or errors. The library provides functions to attach listeners that invoke once when a request or response finishes, with error information passed to the callback if applicable, and includes utility functions to check whether a request or response has already finished. It's built for JavaScript and Node.js and is distributed via npm.

Languages

JavaScript
100.0%

Contributors