Kong / galileo-agent-node

Node.js agent for Galileo - API Analytics
https://getgalileo.io
MIT License
9 stars 4 forks source link

Feature/optimization #9

Closed ahmadnassri closed 9 years ago

ahmadnassri commented 9 years ago

wip, will add full description after:

TODO:

problem:

I'm attempting to capture the request body in a similar fashion to the response one, however, since the asynchronous events req.on('data') and req.on('end') are out of scope of res.end() that whole block is not doing anything, I couldn't figure out a clean way to bring the request body into scope here ...