I will tell you how I solved the problem with this. I had a different look at this, and I will share it too. I would like to have something similar in my "view".
app('/urlToView', function(req, response){ request.on('end', function() { var post = **request.data;**
The request.data strong> icon is what you should notice here. However, I have not yet decided how not to have request.on('end'...) in my view.
The reason why console.log () will be the way you handle the callback from the function in which you are doing all this.
I grabbed the request before it lands in my opinion when I started the server
self.preProcess(self, request, response);
and
preProcess: function onRequest(app, request, response){ processor.preRequest(request); }
and finally int preRequest (), I do
if (request.method === 'POST') { var postdata = ""; request.on('data', function(postdataChunk){ postdata += postdataChunk; }); request.on('end', function(){ _transformRequest(request, _transformPostdata(postdata));
and adding console.log(postdataChunk); this is not a problem, since all callbacks are properly handled.
In addition, it would be very foolish for me to ask, but do you know console.log (); Does not display in the browser, but in the terminal window?
This may not be the exact answer for you, but I hope this helps a bit.