blob: 71eb411656ab3ff25eec932591bf472bae17a117 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
var fs = require('fs');
require('http').createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
var a = 'world';
res.write('hello', 'utf8', function() {
a = 'blah';
fs.appendFile('callback', '', function() {});
});
res.end(a);
}).listen(7080);
|