JavaScript を用いて,Web サーバのプログラムを動かしてみる.
Node.js Windows 版のインストールは, 別ページで説明している.
https://github.com/lgraubner/sitemap-generatorに記載の手順に従う.
npm install -S http
var http = require('http');
var handleRequest = function(request, response) {
console.log('Received request for URL: ' + request.url);
response.writeHead(200);
response.end('Hello World!');
};
var www = http.createServer(handleRequest);
www.listen(8080);
本サイトは金子邦彦研究室のWebページです.サイトマップは,サイトマップのページをご覧下さい. 本サイト内の検索は,サイト内検索のページをご利用下さい.
問い合わせ先: 金子邦彦(かねこ くにひこ) ![]()