testcase-request.coffee 266 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 request = require "request" CombinedStream = require "./lib/combined-stream2.coffee" str = require "stream" stream = CombinedStream.create() stream.append request("http://google.com/") stream.append new Buffer("\nDONE!\n") stream.pipe(new str.PassThrough).resume()