Skip to content

Commit de766bf

Browse files
committed
Completed httpServer
1 parent 95975cb commit de766bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

11httpServer.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)