I would just make a module similar to the json.js middleware module and just don't bother converting the
buf data into anything else. Wrap it into a
plain.js file, apply some decent "don't repeat yourself" refactoring, and submit a pull request to connect. Seems generally handy. However, note that while convenient, large enough request bodies will require streaming straight to disk at some point so you don't consume all the memory in your node server.