Skip to content

Instantly share code, notes, and snippets.

@bhelx

bhelx/dump.js

Created Sep 24, 2012
Embed
What would you like to do?
body dump middleware
app.all('*', function (req, res, next) {
req.setEncoding('utf-8');
req.on('data', function (data) {
console.log(data);
});
// next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.