static.large.js
This file
Path
benchmarks/node/static.large.js
14 lines · 398 bytes · JavaScript
Last changed by
Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
History of this fileTake it
123456789101112131415
var fs = require('fs'), http = require('http')
http.createServer(function(req, res) { res.writeHead(200, { 'Content-Type': 'text/plain', 'Transfer-Encoding': 'chunked' }) fs.createReadStream('benchmarks/shared/huge.js') .addListener('data', function(data){ res.write(data, 'binary') }) .addListener('end', function(){ res.end() })}).listen(3000, 'localhost')