This commit is contained in:
2022-11-11 16:29:38 +09:00
commit 584f181bdb
13 changed files with 516 additions and 0 deletions

13
http/server.js Normal file
View File

@@ -0,0 +1,13 @@
const http = require("http");
const port = 18080;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader("Content-Type", "text/html");
res.end("<h1>Hello, World!</h1>");
});
server.listen(port, () => {
console.log(`Server running at port ${port}`);
});