UNPKG

@pirxpilot/on-headers

Version:

Execute a listener when a response is about to write headers

32 lines (21 loc) 582 B
2.0.0 / 2025-04-06 ================== * rename to @pirxpilot/on-headers * support raw headers format * optimize code for multiple listeners * simplify arguments handling * modernize code 1.0.2 / 2019-02-21 ================== * Fix `res.writeHead` patch missing return value 1.0.1 / 2015-09-29 ================== * perf: enable strict mode 1.0.0 / 2014-08-10 ================== * Honor `res.statusCode` change in `listener` * Move to `jshttp` organization * Prevent `arguments`-related de-opt 0.0.0 / 2014-05-13 ================== * Initial implementation