mikeal/request — pull request #308 by GotEmB (2012-08-26 10:30:35+00:00)
Title: Manual `piping`

I had to override the `process.nextTick` function call in `request.prototype.init` to perform manual `piping`.

I had to break the response body of a get request into multiple chunks and perform a put requests with those chunks. The server that I was posting to did not allow `Transfer Coding: Chunked`.

So all I did was create a new option `endOnTick: true`. What this option does is, when `true`, nothing's different. When `false`, whatever the state of the request, the code in the `process.nextTick` call is not executed.