xref
: /
unit
/
test
/
node
/
basic
/
app.js
Home
History
Annotate
Raw
Download
current directory
Deleted
Added
sdiff
udiff
text
old ( 1114:6d87da79ec4e )
new ( 1865:3c551b9721df )
full
compact
jumper
download diff
app.js (1114:6d87da79ec4e)
app.js (1865:3c551b9721df)
1
#!/usr/bin/env node
2
1
3
require('
unit-
http').createServer(function (req, res) {
2
require('http').createServer(function (req, res) {
4
res.writeHead(200, {'Content-Length': 12, 'Content-Type': 'text/plain'})
5
.end('Hello World\n');
6
}).listen(7080);
3
res.writeHead(200, {'Content-Length': 12, 'Content-Type': 'text/plain'})
4
.end('Hello World\n');
5
}).listen(7080);