blob: bdefe1cd59cba3d4c43a58e78251e0894b786d3b (
plain) (
tree)
|
|
require('http').createServer(function (req, res) {
let body = '';
req.on('data', chunk => {
body += chunk.toString();
});
req.on('end', () => {
res.writeHead(200, {'Content-Length': Buffer.byteLength(body)})
.end(body);
});
}).listen(7080);
|