aboutsummaryrefslogtreecommitdiff
path: root/e2e/web-server/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-02-04 21:29:44 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-02-04 21:29:44 +0900
commit8d3c79c63a6d05b6c19e40fb438c7b900ef70a55 (patch)
treea2244d8c90399bbc446ac94a2a979c6b99fff491 /e2e/web-server/index.js
parentf6f64297aa030cd3fbad4bbb9e322e469bc762e8 (diff)
add simple web server
Diffstat (limited to 'e2e/web-server/index.js')
-rw-r--r--e2e/web-server/index.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/e2e/web-server/index.js b/e2e/web-server/index.js
new file mode 100644
index 0000000..81e11c1
--- /dev/null
+++ b/e2e/web-server/index.js
@@ -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');