Sha256: 27c0b0fbf208f7c8eaf570592852bd222ca9bdc776453bcacd5dd9146c7b02e1

Contents?: true

Size: 370 Bytes

Versions: 97

Compression:

Stored size: 370 Bytes

Contents

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)

Version data entries

97 entries across 96 versions & 13 rubygems

Version Path
ilog-0.4.0 node_modules/duplexify/example.js
ilog-0.3.3 node_modules/duplexify/example.js
jester-data-8.0.0 node_modules/duplexify/example.js
ezii-os-5.2.1 node_modules/duplexify/example.js
ezii-os-2.0.1 node_modules/duplexify/example.js
ezii-os-1.1.0 node_modules/duplexify/example.js
ezii-os-1.0.0 node_modules/duplexify/example.js
ezii-os-0.0.0.1.0 node_modules/duplexify/example.js
ezii-os-0.0.0.0.1 node_modules/duplexify/example.js
optimacms-0.4.3 spec/dummy/node_modules/duplexify/example.js
optimacms-0.4.2 spec/dummy/node_modules/duplexify/example.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/duplexify/example.js
locomotivecms-3.4.0 app/javascript/node_modules/duplexify/example.js
cortex-0.1.3 spec/dummy/node_modules/duplexify/example.js
dragonfly_puppeteer-0.1.0 node_modules/duplexify/example.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/duplexify/example.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/duplexify/example.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/duplexify/example.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/duplexify/example.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/duplexify/example.js