Tuesday 6 June 2017

Reading requests body Nodejs

I'm running this simple http node.js server:

var http = require('http');

http.createServer(function (req, res) {

}).listen(6000);

Can you explain me, how I can read the body of the incoming requests, in orderd to visualize it on the console?



via SimCor

No comments:

Post a Comment