应该有人看过TJ的node-methods这个模块把
我看commit历史里面有一个:
引入了http模块:
var http = require('http');
if (http.METHODS) {
module.exports = http.METHODS.map(function(method){
return method.toLowerCase();
});
} else {
实际上官方的api是查不到http模块有METHODS 这个属性的,这个写法为啥?