blob: 3a9e51e85ca92130a0e3e23e1fb8b0f60b8261f6 (
plain) (
tree)
|
|
#!/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);
|