Commit Graph

71 Commits (dfe8e95be4df42f86b393f060ca5a63dcc17dae1)

Author SHA1 Message Date
TJ Holowaychuk fc25b79b99 add err.expose check for response handler to expose the err.message 2013-09-12 08:05:50 -07:00
TJ Holowaychuk 6db24f9fac change ctx.error() to flag as err.expose
meaning the application could respond with this message if it likes
2013-09-12 08:01:40 -07:00
TJ Holowaychuk 091d5010cd add ENOENT err.code support for 404 2013-09-08 12:11:02 -07:00
TJ Holowaychuk 228c38cf3e fix text/plain response for 500 errors 2013-09-08 12:07:50 -07:00
TJ Holowaychuk 02ae4f787d fix socket "error" handling
always has clientError now
2013-09-08 11:27:16 -07:00
TJ Holowaychuk a1edb2fe7c add docs for error ctx 2013-08-31 09:18:43 -07:00
Jonathan Ong a5208f5ce6 pass context to errors
errors are kind of useless without the context
2013-08-30 23:48:54 -07:00
TJ Holowaychuk ad0dd3cc39 add Context#error(). Closes #31 2013-08-27 20:54:13 -07:00
TJ Holowaychuk 99895aa215 change app to emit "error" events instead of app.error(fn) 2013-08-27 20:24:04 -07:00
TJ Holowaychuk eb41a90b80 fix app-level error delegation, always delgate 2013-08-27 19:42:45 -07:00
TJ Holowaychuk b047405cc5 add Context#hasContent 2013-08-27 19:30:35 -07:00
TJ Holowaychuk 9e69922859 replace "qs" with native "querystring" for now 2013-08-27 14:49:11 -07:00
TJ Holowaychuk 6fb32165e3 fix .status= case sensitivity 2013-08-22 21:10:59 -07:00
TJ Holowaychuk d2713418cc add .querystring memoization 2013-08-22 18:07:16 -07:00
TJ Holowaychuk 261acbde88 add .query memoization for ultimate hello world benchmarks 2013-08-22 18:06:16 -07:00
TJ Holowaychuk 933ecd8747 add memoization to .path. Closes #17 2013-08-22 17:58:51 -07:00
TJ Holowaychuk 2de010ca47 add err.status support. Closes #20 2013-08-21 19:47:56 -07:00
TJ Holowaychuk 1457a3df0f add striping of Content-* fields when 204 / 304. Closes #21 2013-08-20 21:24:18 -07:00
TJ Holowaychuk 3d92717b7a remove Context#auth. Closes #26 2013-08-19 18:24:17 -07:00
Jonathan Ong 978f581099 app.context: extend the context with your own properties 2013-08-17 16:58:53 -07:00
TJ Holowaychuk 9e167c5ed9 Initial commit 2013-08-17 00:15:57 -07:00