Commit Graph

237 Commits (master)

Author SHA1 Message Date
TJ Holowaychuk 064a7b8fc1 docs: update koa vs express benchmark stuff 2013-12-26 11:02:26 -08: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
Jonathan Ong 86effcd5c6 docs: move context aliases below context-specific stuff 2013-12-24 22:59:55 -08:00
yosssi b047805f9e Fixed the link url to the list of middlewares on docs/api/index.md. 2013-12-24 21:13:42 +09:00
TJ Holowaychuk cfeefac191 docs: typo 2013-12-22 07:33:37 -08:00
nicoder 46163dba03 fix typo 2013-12-22 13:26:30 +01:00
TJ Holowaychuk 5eb53a7f7a add docs for .throw() additions 2013-12-20 15:34:48 -08:00
Mathieu Gallé-Tessonneau bf3e155d4b fix typo 2013-12-20 11:10:31 +01:00
Hugh Kennedy 098dac5a59 Fix typo
s/requivalent/equivalent/g
2013-12-20 11:23:29 +11:00
superchink 10ea872065 Fix typo of "middleware" in index.md
Originally submitted pull request to wrong repo; sorry!
2013-12-19 14:28:31 -08:00
Darren Cauthon 17ed10a91c Fix word 2013-12-19 15:59:00 -06:00
TJ Holowaychuk d87af72f21 docs 2013-12-19 13:38:51 -08:00
TJ Holowaychuk fefb3c59ae docs: add "why is this not express 4.0" to FAQ 2013-12-19 08:56:41 -08:00
TJ Holowaychuk a58e38454f Merge branch 'master' of github.com:koajs/koa 2013-12-19 08:47:44 -08:00
TJ Holowaychuk c90369d2df docs: add routing to FAQ 2013-12-19 08:47:40 -08:00
Jonathan Ong 2f4163f6e6 docs app: some copy changes and typo fixes 2013-12-18 23:56:26 -08:00
Jonathan Ong 0c024c48a8 docs response: fix redirect for correctness
do we want to check if the body is already set?
2013-12-18 23:51:51 -08:00
Jonathan Ong e00f2aee9d docs response: fix md list jank 2013-12-18 23:48:45 -08:00
Jonathan Ong 039805265f docs request: typo 2013-12-18 23:47:48 -08:00
TJ Holowaychuk 6761caa09d docs: more faq 2013-12-18 23:08:50 -08:00
TJ Holowaychuk 9812aff8d2 docs: more faq 2013-12-18 23:08:14 -08:00
TJ Holowaychuk 9e131089d3 docs: add performance impact to FAQ 2013-12-18 23:03:11 -08:00
TJ Holowaychuk 8a7554525b docs: faq 2013-12-18 22:54:56 -08:00
TJ Holowaychuk 0e4545c03b docs 2013-12-18 22:45:33 -08:00
TJ Holowaychuk 4923688944 docs: explain middleware cascading a bit
hopefully this sort of makes sense, need that gif fixed
2013-12-18 22:41:27 -08:00
TJ Holowaychuk c132b83bc9 docs: add context example 2013-12-18 20:35:38 -08:00
TJ Holowaychuk 0ae852be03 Merge branch 'master' of github.com:koajs/koa 2013-12-18 20:24:49 -08:00
TJ Holowaychuk c1ed85361b add hello world and app intro
meh not a fan of what im writing today but gotta get this thing out
2013-12-18 20:24:41 -08:00
TJ Holowaychuk c55ef32978 docs: move app.listen() stuff lower 2013-12-18 20:12:12 -08:00
TJ Holowaychuk bed70f4716 docs 2013-12-18 20:09:17 -08:00
Jonathan Ong e83e0022dd docs context: fix markdown jank
breaks your styling, but your markdown styling creates bad list outputs
2013-12-18 01:31:33 -08:00
Jonathan Ong 6b33d4d1ae docs context: throw defaults to 500 2013-12-18 01:30:27 -08:00
TJ Holowaychuk 97a3d84ec9 docs 2013-12-17 23:53:58 -08:00
TJ Holowaychuk dc20952996 remove some awkward docs
reads bad on the site
2013-12-17 23:50:19 -08:00
TJ Holowaychuk 4c2410d19c docs 2013-12-17 23:47:14 -08:00
TJ Holowaychuk a2582e7aa3 change req.is() to return the canonical mime type 2013-11-28 12:47:23 -08:00
Jonathan Ong 8717a3ad2b req.is(): make better
closes #105 and #106
2013-11-28 00:13:16 -08:00
TJ Holowaychuk 9c652118a9 docs about middleware composition noop 2013-11-27 20:52:36 -08:00
TJ Holowaychuk 1a10181818 docs about yielding control to downstream middleware 2013-11-27 20:51:30 -08:00
TJ Holowaychuk 81d027eca7 add DEBUG usage docs. Closes #41 2013-11-26 21:37:22 -08:00
TJ Holowaychuk 8e10f12d38 add ctx.remove() and res.remove(). Closes #100 2013-11-24 05:06:35 -08:00
Jonathan Ong e2cd1f02ca docs: req.accepts(): throw a 406 2013-11-20 18:06:45 -08:00
Jonathan Ong 1d38d4acd1 req.accepts: default to first 'type' 2013-11-20 18:00:24 -08:00
Jonathan Ong 5ae3f4eb30 req.acceptsEncodings: default to 'identity' 2013-11-20 17:46:11 -08:00
Jonathan Ong 9d7dd437d7 context delegates: response.lastModified and response.etag
only doing setters because i think getters would be pretty confusing.
2013-11-20 14:09:49 -08:00
Jonathan Ong dc873d66e2 docs: add res.lastModified and res.etag among other things 2013-11-19 22:40:52 -08:00
Jonathan Ong 0362c8e457 add app.keys support 2013-11-15 10:04:07 -08:00
TJ Holowaychuk c699c75c52 add koa Request / Response objects and delegation. Closes #52 2013-11-13 09:01:15 -08:00
TJ Holowaychuk 9ee6ada2d5 update guide docs for new middleware style 2013-11-10 15:40:59 -07:00
TJ Holowaychuk 22c035bbea add ctx.query docs to clarify lack of nested object support 2013-11-08 15:35:32 -08:00
TJ Holowaychuk 3dd172d032 remove content-negotiation accessor methods, replace with method equivalents 2013-11-08 15:16:51 -08:00
TJ Holowaychuk b35929dc3a remove app.context() from docs 2013-11-07 17:06:00 -08:00
TJ Holowaychuk a9ae563051 add cookie docs 2013-11-06 14:09:19 -08:00
TJ Holowaychuk 11913f5e4e add ctx.body= setter
this prevents a bunch of redundant checks that middleware may need to
check response length, type etc. the less code floating around based
on our supported response body types the better, giving us more freedom
to change these as needed, and just less error-prone code in general.
2013-09-14 15:54:17 -07:00
TJ Holowaychuk c5ecbd99ac Merge branch 'master' of github.com:koajs/koa 2013-09-14 14:48:43 -07:00
TJ Holowaychuk 04f4d72692 add charset support to ctx.type= 2013-09-14 14:48:33 -07:00
Chris Tarquini 886a292a51 Fixed typo
`ctx.accept` -> `ctx.accepts`
2013-09-14 12:53:36 -04:00
TJ Holowaychuk d7403552b9 docs 2013-09-13 20:38:45 -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 28b5b85860 add socket error handling docs 2013-09-08 12:02:59 -07:00
TJ Holowaychuk 02ae4f787d fix socket "error" handling
always has clientError now
2013-09-08 11:27:16 -07:00
TJ Holowaychuk 2733c61d00 docs 2013-09-02 19:31:11 -07:00
TJ Holowaychuk a79bfe3329 docs 2013-09-02 19:18:48 -07:00
TJ Holowaychuk 6eb92c3bd1 docs 2013-09-02 19:18:37 -07:00
TJ Holowaychuk 74c452a93f docs 2013-09-02 19:18:10 -07:00
TJ Holowaychuk b132484dcf docs 2013-09-02 19:17:49 -07:00
TJ Holowaychuk 33221d6574 docs 2013-09-02 19:17:29 -07:00
TJ Holowaychuk 4a0c55cc96 docs 2013-09-02 19:13:47 -07:00
TJ Holowaychuk c6dc504ce8 docs 2013-09-02 19:05:49 -07:00
TJ Holowaychuk 5459fb8c55 docs 2013-09-02 18:27:47 -07:00
TJ Holowaychuk 60eb2edb86 add guide 2013-09-02 18:25:17 -07:00
TJ Holowaychuk a1edb2fe7c add docs for error ctx 2013-08-31 09:18:43 -07:00
TJ Holowaychuk e21938a136 docs 2013-08-27 20:56:17 -07:00
TJ Holowaychuk 5cc50ef2c8 docs 2013-08-27 20:29:18 -07:00
TJ Holowaychuk b047405cc5 add Context#hasContent 2013-08-27 19:30:35 -07:00
TJ Holowaychuk 3e0599851a docs 2013-08-27 14:50:20 -07:00
TJ Holowaychuk 6fb32165e3 fix .status= case sensitivity 2013-08-22 21:10:59 -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 f32c3540f4 docs 2013-08-20 22:16:53 -07:00
TJ Holowaychuk 20b2c9ff4a add FAQ. Closes #12 2013-08-20 22:07:00 -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 #26 2013-08-19 18:24:17 -07:00
Julian Gruber c1380515b5 typo 2013-08-18 14:49:27 -04:00
TJ Holowaychuk 5f4574b8f5 add app.context() docs 2013-08-18 11:18:05 -07:00
TJ Holowaychuk 5095131e95 docs 2013-08-17 11:57:27 -07:00
TJ Holowaychuk 9e167c5ed9 Initial commit 2013-08-17 00:15:57 -07:00