Commit graph

216 commits

Author SHA1 Message Date
TJ Holowaychuk
3eafcdd85a add names to simple example middleware 2013-08-28 21:05:35 -07:00
TJ Holowaychuk
7db6987ccc change benchmark port 2013-08-28 16:27:34 -07:00
TJ Holowaychuk
0c19a060c4 fix simple example 2013-08-27 22:42:05 -07:00
TJ Holowaychuk
fae98c10ec add context debug() 2013-08-27 21:24:53 -07:00
TJ Holowaychuk
ddc7347afe change "unnamed" middleware to -, less junk output 2013-08-27 21:23:11 -07:00
TJ Holowaychuk
52a60b715d docs 2013-08-27 21:13:20 -07:00
TJ Holowaychuk
56b2732133 add conditional middleware middleware example 2013-08-27 21:12:42 -07:00
TJ Holowaychuk
552ef6fd52 typo 2013-08-27 21:10:29 -07:00
TJ Holowaychuk
1ceafd0f4e add conditional middleware example. Closes 2013-08-27 21:06:47 -07:00
TJ Holowaychuk
e21938a136 docs 2013-08-27 20:56:17 -07:00
TJ Holowaychuk
ad0dd3cc39 add Context#error(). Closes 2013-08-27 20:54:13 -07:00
TJ Holowaychuk
f6a2f54aef add error handling example 2013-08-27 20:36:44 -07:00
TJ Holowaychuk
5cc50ef2c8 docs 2013-08-27 20:29:18 -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
750748834e refactor examples 2013-08-27 19:57:16 -07:00
TJ Holowaychuk
b138f713fa refactor example 2013-08-27 19:56:35 -07:00
TJ Holowaychuk
17d8f67073 add pipe example. Closes 2013-08-27 19:48:58 -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
f7b8b2b6ae docs 2013-08-27 19:03:22 -07:00
TJ Holowaychuk
3e0599851a docs 2013-08-27 14:50:20 -07:00
TJ Holowaychuk
9e69922859 replace "qs" with native "querystring" for now 2013-08-27 14:49:11 -07:00
TJ Holowaychuk
41f6108bba use GH style .repository 2013-08-26 08:08:28 -07:00
TJ Holowaychuk
b747d8756a Merge branch 'master' of github.com:koajs/koa 2013-08-26 08:08:03 -07:00
TJ Holowaychuk
2d5e7dcd50 Merge pull request from juliangruber/patch-4
add repository
2013-08-26 08:07:58 -07:00
Julian Gruber
05044c4a8b add repository 2013-08-26 11:42:51 +02:00
TJ Holowaychuk
4026d46f7e add authors 2013-08-25 19:16:57 -07:00
TJ Holowaychuk
6fb32165e3 fix .status= case sensitivity 2013-08-22 21:10:59 -07:00
TJ Holowaychuk
3439437c18 add app.error(fn). Closes 2013-08-22 18:47:07 -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 2013-08-22 17:58:51 -07:00
TJ Holowaychuk
832a1dcc1e change socket error listener to just use length 2013-08-22 11:53:14 -07:00
TJ Holowaychuk
4e4fcfc642 fix socket error handler event listener leak 2013-08-22 11:52:22 -07:00
TJ Holowaychuk
fe89dc3783 add socket error-handling. Closes
otherwise node just explodes, not a good default
2013-08-21 19:52:01 -07:00
TJ Holowaychuk
b4b0789d7a fix .onerror bind for stream "error" handling 2013-08-21 19:50:32 -07:00
TJ Holowaychuk
9d7720f2d8 change .outputErrors to false for "test" env only
good to know in prod ;)
2013-08-21 19:48:47 -07:00
TJ Holowaychuk
2de010ca47 add err.status support. Closes 2013-08-21 19:47:56 -07:00
TJ Holowaychuk
f32c3540f4 docs 2013-08-20 22:16:53 -07:00
TJ Holowaychuk
e5c7632b07 docs 2013-08-20 22:07:20 -07:00
TJ Holowaychuk
20b2c9ff4a add FAQ. Closes 2013-08-20 22:07:00 -07:00
TJ Holowaychuk
ca7be7b89f add Context#cookies support. Closes
need to add signing support in there as well
2013-08-20 21:51:14 -07:00
TJ Holowaychuk
1af71053a2 add .travis.yml. Closes 2013-08-20 21:34:35 -07:00
TJ Holowaychuk
e24334e820 add test for 304 as well 2013-08-20 21:30:55 -07:00
TJ Holowaychuk
1457a3df0f add striping of Content-* fields when 204 / 304. Closes 2013-08-20 21:24:18 -07:00
TJ Holowaychuk
b9d4d2031d docs 2013-08-19 20:38:13 -07:00
TJ Holowaychuk
febf14dfca Merge branch 'master' of github.com:koajs/koa 2013-08-19 18:24:26 -07:00
TJ Holowaychuk
3d92717b7a remove Context#auth. Closes 2013-08-19 18:24:17 -07:00
TJ Holowaychuk
25e9159df7 Merge pull request from juliangruber/patch-3
typo
2013-08-18 12:19:47 -07:00
Julian Gruber
c1380515b5 typo 2013-08-18 14:49:27 -04:00