1 2require('http').createServer(function (req, res) { 3 res.writeHead(200, {'Content-Type': 'text/plain'}) 4 .end(Buffer.from('buffer', 'utf8')); 5}).listen(8080); 6