4 Star 8 Fork 3

zasidle/luahelper

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
example.js 370 Bytes
一键复制 编辑 原始数据 按行查看 历史
zasidle 提交于 2018-05-03 16:47 +08:00 . 初始版本0.0.5
var duplexify = require('duplexify')
var http = require('http')
var request = function(opts) {
var req = http.request(opts)
var dup = duplexify()
dup.setWritable(req)
req.on('response', function(res) {
dup.setReadable(res)
})
return dup
}
var req = request({
method: 'GET',
host: 'www.google.com',
port: 80
})
req.end()
req.pipe(process.stdout)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/debugconsole/luahelper.git
git@gitee.com:debugconsole/luahelper.git
debugconsole
luahelper
luahelper
master

搜索帮助