simple node app
var http = require('http');
// HTTPサーバーのイベントハンドラを定義
http.createServer(function (req, res) {
// HTTPヘッダを出力
res.writeHead(200, {'Content-Type': 'text/plain'});
// レスポンスの中身を出力
res.end('漢字でHello World\n');
}).listen(1337, '127.0.0.1'); // 127.0.0.1の1337番ポートで待機
No tags for this post.
