add simple web server
This commit is contained in:
parent
f6f64297aa
commit
8d3c79c63a
1 changed files with 14 additions and 0 deletions
14
e2e/web-server/index.js
Normal file
14
e2e/web-server/index.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
var http = require('http');
|
||||
|
||||
const content =
|
||||
'<!DOCTYPE html>' +
|
||||
'<html lang="en">' +
|
||||
'<body style="width:10000px; height:10000px">' +
|
||||
'</body>' +
|
||||
'</html">' ;
|
||||
|
||||
|
||||
http.createServer(function (req, res) {
|
||||
res.writeHead(200, {'Content-Type': 'text/html'});
|
||||
res.end(content);
|
||||
}).listen(11111, '127.0.0.1');
|
Reference in a new issue