Skip to content

Instantly share code, notes, and snippets.

View boxfox619's full-sized avatar
🎯
Focusing

김성래 - boxfox boxfox619

🎯
Focusing
View GitHub Profile
@jeffrafter
jeffrafter / handler.js
Created April 2, 2010 20:59
Simple HTTP Server and Router in node.js
exports.createHandler = function (method) {
return new Handler(method);
}
Handler = function(method) {
this.process = function(req, res) {
params = null;
return method.apply(this, [req, res, params]);
}
}