I’m working on an app that has to accept webhook requests and needs access to the raw request body. I’m currently using
simple:json-routes to make the process of setting up route handlers simple. This unfortunately means that a json body parser gets run at some point in the process and makes using
bodyParser.raw() useless. I’ve tried setting
request.on('data/end') events to get the raw body, and using the
raw-body module, and both of these methods just cause the request to hang till it times out.
Any idea how I might get access to this… At this point I don’t even care if it’s a horridly ugly hack , I just need it to work.