blob: 3a9e51e85ca92130a0e3e23e1fb8b0f60b8261f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env node
var fs = require('fs');
require('unit-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);
|