Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Nodejs serves a file with 80x more CPU usage than Nginx?.
response.writeHead(200 /, ...set http header info (mime, length etc).../ ); stream = fs.createReadStream( filename, { flags: 'r', start: start, end: end }); stream.pipe(response);
There are no comments on this comment yet.
response.writeHead(200 /, ...set http header info (mime, length etc).../ ); stream = fs.createReadStream( filename, { flags: 'r', start: start, end: end }); stream.pipe(response);