0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00
nodejs/count-hosts.js
2009-02-22 17:46:11 +01:00

13 lines
342 B
JavaScript

function Process(request) {
log("Processing " + request.path + ". method: " + request.method);
request.onBody = function (chunk) {
log("body chunk: " + chunk);
}
request.respond("HTTP/1.0 200 OK\r\n")
request.respond("Content-Type: text-plain\r\nContent-Length: 6\r\n\r\nhello\n");
/*
request.response_complete();
*/
}