NSH - nokitjs/nokit GitHub Wiki
nsh 类似 asp.net 中的 “一般处理程序”,如下
/**
* 定义 ExampleHandler
**/
var ExampleHandler = module.exports = function () { };
/**
* 请求处理方法
**/
ExampleHandler.prototype.handle = function () {
var self = this;
self.context.response.setHeader('Content-Type', 'text/html');
self.context.content("Hello NSH!");
};