sintaxi/node-dbox — pull request #25 by dtjm (2012-05-13 01:07:23+00:00)
Title: Return the readable stream object from request

I am using this in my project to allow streaming of the Dropbox API response to the client. This is especially useful for streaming responses from `GET /files`. For example (with the 0.3.x API):

var stream = dbox.get("/dropbox/file.ext", opts, function(status, fileBuffer){
// Handle error here
});

// Write each chunk of the Dropbox API to the client connection as it comes in
stream.on("data", function(chunk){
res.write(chunk);
});

stream.on("end", function(){
res.end();
});