const http = require('http');
http.createServer((req, res)=>{
}).listen(1337);
const http = require("http");
const request = http.request({
'host': 'localhost',
'port': 1337,
'path': '/',
'method': 'POST'
});
request.on('response', function (res) {
res.on('data', function(data){
console.log(data);
});
})
request.end();