We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95975cb commit de766bfCopy full SHA for de766bf
11httpServer.js
@@ -0,0 +1,11 @@
1
+var http = require('http');
2
+var fs = require('fs');
3
+
4
+var server = http.createServer(function(request, response){
5
+ contents.pipe(response);
6
+ // how would we call response.end() in this situation?
7
+})
8
9
+server.listen(process.argv[2]);
10
11
+var contents = fs.createReadStream(process.argv[3],'utf8');
0 commit comments