17 lines
300 B
JavaScript
Executable File
17 lines
300 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var fs = require('fs');
|
|
|
|
require('unit-http').createServer(function (req, res) {
|
|
res.write('blah');
|
|
|
|
Promise.resolve().then(() => {
|
|
res.end();
|
|
});
|
|
|
|
req.on('data', (data) => {
|
|
fs.appendFile('callback', '', function() {});
|
|
});
|
|
|
|
}).listen(7080);
|