function handleRequest(e,t){var n="";t.writeHead(200,{"Content-Type":"text/html"}),e.on("data",function(e){n+=e,console.log(JSON.stringify(JSON.parse(n),null,4))}),t.end()}var http=require("http");const PORT=8080;var server=http.createServer(handleRequest);server.listen(PORT,function(){console.log("Server listening on: http://localhost:%s",PORT)});