11 lines
231 B
JavaScript
11 lines
231 B
JavaScript
|
|
||
|
var http = require('http');
|
||
|
|
||
|
module.exports = http.createServer(function(req, res){
|
||
|
console.log('%s %s', req.method, req.url);
|
||
|
var body = 'Hello';
|
||
|
res.writeHead(200, { 'Content-Length': body.length });
|
||
|
res.end(body);
|
||
|
});
|
||
|
|