static.js
This file
Path
benchmarks/node/static.js
14 lines · 400 bytes · JavaScript
Last changed by
Merge branch 'benchmarks'visionmediabefore adoptionb5df39b
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/jquery.js') .addListener('data', function(data){ res.write(data, 'binary') }) .addListener('end', function(){ res.end() })}).listen(3000, 'localhost')