Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

azuki-trusty / azk   deb

Repository URL to install this package:

Version: 0.5.1 

/ usr / lib / azk / node_modules / memorystream / test / example.js

var http = require('http'),
    MemoryStream = require('../index'),
    util = require('util');

var options = {
	host: 'google.com'
};
var memStream = new MemoryStream(null,{
    readable : false
});

var req = http.request(options, function(res) {
	util.pump(res, memStream);
	res.on('end',function(){
	    console.log(memStream.toString());
	});
});
req.end();