tomas/needle — Issue #5: Should use streams, not be synchronous
Author: OrangeDog
Created: 2012-03-08 15:28:43+00:00
State: open

Use of `readFileSync` is a very bad idea, as it will block the whole process.
Instead, the client should accept a `Stream` (and internally can `createReadStream` from any passed file paths).
Ideally this stream would be piped straight into the request object, but even buffering it internally would be preferably to the the current blocking behaviour.