summaryrefslogtreecommitdiffhomepage
path: root/test/node/require_shim/es_modules_http/app.mjs
blob: c7bcfe49b74a3962ffb22be4a91cc45cd7f7f389 (plain) (blame)
1
2
3
4
5
6
import http from "http"

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Length': 12, 'Content-Type': 'text/plain'})
       .end('Hello World\n');
}).listen(7080);