Skip to content

Commit 2e27447

Browse files
committed
Include example
1 parent a0f4a51 commit 2e27447

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed
Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
// test NodeJS
2-
const https = require('node:https');
31
const http = require('node:http');
42

5-
https.createServer({
6-
insecureHTTPParser: true
7-
}, (req, res) => {
8-
res.writeHead(200);
9-
res.end('hello world\n');
10-
});
11-
123
http.createServer({
134
insecureHTTPParser: true
145
}, (req, res) => {
15-
res.writeHead(200);
16-
res.end('hello world\n');
17-
});
18-
19-
http.get({ insecureHTTPParser: true }, (res) => {
20-
res.writeHead(200);
21-
res.end('hello world\n');
22-
});
23-
24-
http.get('url', { insecureHTTPParser: true }, (res) => {
25-
res.writeHead(200);
26-
res.end('hello world\n');
27-
});
28-
29-
http.request({ insecureHTTPParser: true }, (res) => {
30-
res.writeHead(200);
31-
res.end('hello world\n');
32-
});
33-
34-
http.request('url', { insecureHTTPParser: true }, (res) => {
35-
res.writeHead(200);
366
res.end('hello world\n');
377
});

0 commit comments

Comments
 (0)