http.ServerResponse.prototype 的 _hasConnectPatch 属性是什么东西?
发布于 11 年前 作者 smalltiger 4284 次浏览 最后一次编辑是 8 年前

在connect module的patch.js 中有: var http = require(‘http’) , res = http.ServerResponse.prototype 然后有用到 if (!res._hasConnectPatch) { 。。。

请问_hasConnectPatch 这个东西是哪里定义的属性呢?在http.serverresponse的nodejs API文档中也没有说啊

回到顶部