-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp.js
More file actions
49 lines (42 loc) · 979 Bytes
/
Copy pathhttp.js
File metadata and controls
49 lines (42 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const http = require("http");
const PORT = 2000;
const app = http.createServer((req, res) => {
res.writeHead(200);
res.write("server is up and flying (❁´◡`❁)");
res.end();
});
app.listen(PORT, () => {
console.log("Port is up and flying");
});
const server = http.createServer((request, response) => {
response.writeHead(200);
response.write("........................");
response.end();
});
server.listen(1000, () => {
console.log("Run");
});
const serve = http.createServer((req, res) => {
res.writeHead(200);
res.write("Running...");
res.end();
});
serve.listen(1200, () => {
console.log("Run");
});
const serving = http.createServer((req, res) => {
res.writeHead(300);
res.write("Time up...");
res.end();
});
serving.listen(1400, () => {
console.log("Run");
});
const swerve = http.createServer((req, res) => {
res.writeHead(500);
res.write("urrnrierio");
res.end();
});
swerve.listen(1500, () => {
console.log("Run");
});