fitstar/falcore — pull request #9 by dgrijalva (2013-04-10 06:46:33+00:00)
Title: Update responders

Added new basic responder: `PipeResponse` that uses an `io.Pipe` to stream a response body as its being read.

Moved redirect and json responders into sub package. This makes way for other types of response generators without crowding the main package.

Added `StreamingJSONResponse` which is like `JSONResponse` but is built on top of `PipeResponse`. The benefit to this is you don't have to pre-buffer the JSON output. This could be valuable for large JSON output. The downside is that you can't capture errors before responding.