Commit graph

1048 commits

Author SHA1 Message Date
Jonathan Ong
ea1a631bb1 bump finished and mocha 2014-01-16 22:33:02 -08:00
Jonathan Ong
794f08faaa bump on-socket-error 2014-01-15 22:18:33 -08:00
TJ Holowaychuk
3bb7a63b77 ocd 2014-01-13 06:36:49 -08:00
TJ Holowaychuk
53b1b8133c refactor with delegation utility 2014-01-13 06:36:10 -08:00
TJ Holowaychuk
26fb6a138a add ctx.host= delegate 2014-01-07 17:22:46 -08:00
TJ Holowaychuk
43a8c12028 docs for req.host= 2014-01-07 17:21:43 -08:00
TJ Holowaychuk
2de4a5561a Merge pull request #176 from jeromew/set_host
Add req.host=
2014-01-07 17:21:03 -08:00
jeromew
93351bf845 Add req.host= 2014-01-07 21:09:01 +00:00
TJ Holowaychuk
612bba8d83 Merge pull request #173 from vesln/throw-err
context.throw supports Error instances
2014-01-04 18:15:57 -08:00
Jonathan Ong
bafc0109fc Update response.md 2014-01-04 12:11:03 -08:00
Jonathan Ong
aa50c8ba7a docs: update docs on res.status and res.body 2014-01-04 02:05:05 -08:00
Veselin Todorov
6cd4c776f8 context.throw supports Error instances 2014-01-04 10:28:24 +02:00
TJ Holowaychuk
e8c0e19b92 update co 2014-01-02 09:16:51 -08:00
TJ Holowaychuk
94efc85b7a remove remaining examples 2013-12-31 10:33:26 -08:00
TJ Holowaychuk
f28dee3423 remove old upload example 2013-12-31 10:31:59 -08:00
TJ Holowaychuk
33846d1b95 remove old simple.js example 2013-12-31 10:31:49 -08:00
TJ Holowaychuk
08eb5c9a88 remove old blog example 2013-12-31 10:31:28 -08:00
Jonathan Ong
3eb894ee85 res: 205 is a no body response code too!
not sure anyone cares enough about this for a test. plus, it’ll still
“work”
2013-12-30 22:25:44 -08:00
Jonathan Ong
5e74f73c93 examples: remove a few already migrated with tests 2013-12-30 22:23:04 -08:00
Jonathan Ong
26f0d16644 docs: cleanup middleware guide, including TJ's yoda-style conditionals
changes on top of 789c30f926. closes
#158, closes #157
2013-12-30 22:20:32 -08:00
Matthew Chase Whittemore
789c30f926 adding docs on how to add multiple middleware at once. #157 2013-12-30 22:08:56 -08:00
Jonathan Ong
d9e56b901d docs: clarify node response property support 2013-12-30 22:08:56 -08:00
TJ Holowaychuk
c4e9f6da33 Release 0.2.1 2013-12-30 10:56:30 -08:00
TJ Holowaychuk
dc96d9828b refactor Response#status= 2013-12-30 10:04:34 -08:00
TJ Holowaychuk
41502429de Merge pull request #163 from koajs/404
better 404 handling
2013-12-30 10:02:23 -08:00
Jonathan Ong
e71937491b refactor: remove unused argument 2013-12-29 22:33:59 -08:00
Jonathan Ong
b7b1c0fd44 better 404 handling 2013-12-29 22:26:19 -08:00
Jonathan Ong
7ee4f43dc0 docs: add debugging and ._name docs 2013-12-29 22:16:04 -08:00
Jonathan Ong
51da356a5f debug: check for fn._name as well 2013-12-29 16:04:06 -08:00
TJ Holowaychuk
ebed2a34af Merge pull request #162 from detj/master
Fix typo in api/index.md
2013-12-29 15:41:15 -08:00
Debjeet Biswas
e492899443 Fix typo in api/index.md
* `negotation` to `negotiation`
2013-12-30 05:06:49 +05:30
TJ Holowaychuk
7c3181e4d7 fix ctx.inspect() after previous commit
otherwise .body will be missing
2013-12-29 11:20:51 -08:00
TJ Holowaychuk
14fe56e632 add explicit .toJSON() calls to ctx.toJSON() 2013-12-29 10:19:21 -08:00
TJ Holowaychuk
88fb4c841d remove trailing comma 2013-12-29 05:46:12 -08:00
TJ Holowaychuk
08a88a92db Release 0.2.0 2013-12-28 18:37:40 -08:00
Jonathan Ong
c86fc2cec9 Merge pull request #160 from jbergstroem/patch-1
Benchmarks: Table-fy
2013-12-27 22:11:04 -08:00
Johan Bergström
c6c375c252 Benchmarks: Table-fy
Had to un-indent text for the GFM markdown to accept the table. Not sure what to do with rest of the file, so I'll leave it open.

`benchmark/` probably needs some love if we expect it to generate
similar output. Even without it, I still think the most readable for end-users.
is the best possible result.
2013-12-28 17:07:00 +11:00
Jonathan Ong
20615b808d refactor: move .is to type-is 2013-12-27 18:56:09 -08:00
Jonathan Ong
7fe4133b4a refactor: move content negotiation to accepts 2013-12-27 18:56:02 -08:00
TJ Holowaychuk
3891e1787b docs: more benchmark stuff 2013-12-26 11:03:47 -08:00
TJ Holowaychuk
064a7b8fc1 docs: update koa vs express benchmark stuff 2013-12-26 11:02:26 -08:00
TJ Holowaychuk
946eeb6917 Merge pull request #155 from tricknotes/fix-history.md
Fix typo in History.md
2013-12-26 10:59:26 -08:00
Ryunosuke SATO
78c06a09d4 Fix typo in History.md
* Fix version number
* Fix release date
2013-12-26 23:33:07 +09:00
Jonathan Ong
40c64a37d7 docs: koa vs express draft 2013-12-26 00:31:01 -08:00
Jonathan Ong
969614dba1 docs: manual responses are not supported
closes #145
2013-12-26 00:11:14 -08:00
TJ Holowaychuk
101bfe42e3 Merge pull request #149 from koajs/move-this-aliases-down
docs: move context aliases below context-specific stuff
2013-12-25 09:31:42 -08:00
TJ Holowaychuk
b944b89df7 Merge pull request #147 from koajs/delegate-next-bench
benchmark: use generator delegation
2013-12-25 09:25:00 -08:00
Jonathan Ong
23548b6c97 test: add a test case for *respond !socket.writable
https://github.com/koajs/koa/commit/9fe483ca767b64de3e9b9e2c78b7bfaf4208
61c2#diff-5372f626ee15242f1e2c6eb31655b4faR187
2013-12-25 00:13:54 -08:00
Jonathan Ong
86effcd5c6 docs: move context aliases below context-specific stuff 2013-12-24 22:59:55 -08:00
Jonathan Ong
3c9dcde11b benchmark: use generator delegation 2013-12-24 22:12:48 -08:00