- update
send-data/errorto pass extra error objects through down the wire.
- throw an exception if you had
{ gzip: true }and no callback - set the gzip header
Added gzip support and a callback interface
- sendJson is now
sendJson(req, res, opts)instead ofsendJson(req, res, data, opts)
- add callback to all methods. This gets called when the response finishes or if gzip errors
- add gzip option to everything
- fix bug with error's handling of sendObject