0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00
nodejs/count-hosts.js

12 lines
295 B
JavaScript
Raw Normal View History

2009-02-20 17:06:07 +01:00
function Process(request) {
2009-02-21 21:00:40 +01:00
log("Processing " + request.path + ". method: " + request.method);
/*
request.onBody = function (chunk) {
log("body chunk: " + chunk);
2009-02-20 17:06:07 +01:00
}
2009-02-21 21:00:40 +01:00
request.respond("HTTP/1.1 200 OK\r\nContent-Type: text-plain\r\n\r\nhello");
request.response_complete
*/
2009-02-20 17:06:07 +01:00
}