This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/attic/httpserver.js
Joseph Henry c1ce7dc87a updated
2016-06-14 16:01:19 -07:00

8 lines
255 B
JavaScript

var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("\n\nWelcome to the machine!\n\n");
});
server.listen(80);
console.log("Server running!");