1import http from "http" 2 3http.createServer(function (req, res) { 4 res.writeHead(200, {'Content-Length': 12, 'Content-Type': 'text/plain'}) 5 .end('Hello World\n'); 6}).listen(8080); 7
1import http from "http" 2 3http.createServer(function (req, res) { 4 res.writeHead(200, {'Content-Length': 12, 'Content-Type': 'text/plain'}) 5 .end('Hello World\n'); 6}).listen(8080); 7