response-distort1.0.0 • Public • Published
Hooks into an
http.ServerResponse instance to modify its response body.
distort(res, map(body, done))
res, an instance of
map, a callback that's called when the response is ready to be modified.
map's first argument is the original response
body. You should call
done(null, modifiedBody) with the updated response body when you're
ready to do so.
const distort =const http =http
MIT. See LICENSE.md for details.