Yu Qi
b16d24ecb8
add maxAge and overwrite options to ctx.cookies.set(name, value, [options]). ( #742 )
2016-05-26 13:31:11 +08:00
jongleberry
e61d54565b
docs: add more docs about app.context
...
references:
- https://github.com/koajs/koa/issues/652
2016-05-14 08:36:50 -07:00
Zack Tanner
808768a597
copy tweaks ( #731 )
2016-05-13 14:27:18 +08:00
d3v
e0a0d9f7cc
fix: v1 artifact "this" reference ( #711 )
2016-04-20 14:15:11 +08:00
Marceli.no
fd839976e2
Typo
...
Significant, but insignificant. Feel free to discard this pull request and make the change yourselves :)
2016-04-03 08:41:04 +08:00
PlasmaPower
9c6969755f
Correct ctx.assert documentation parameter order
2016-03-26 21:26:09 -06:00
PlasmaPower
efcdd3b93e
Docs: v2 error handling is environment independent
2016-03-22 12:22:43 -06:00
jongleberry
2b094eb895
docs: update history and docs for v2
2016-03-22 11:03:19 -07:00
Robin Pokorný
340dd4f1a3
Lint JavaScript in Markdown
2016-03-16 16:50:10 +01:00
Lee Bousfield
1d1698eb85
Update error handling doc to use promises+async
2016-03-12 20:19:55 -07:00
Lee Bousfield
a440425dc2
Add support for headers in errors
2016-03-12 17:46:35 -07:00
Jonathan Ong
d768ed83b6
docs: note stream error handling and destruction. ref: #612
2016-03-12 14:22:28 -08:00
dead_horse
a808671340
add app.silent, err.status, err.expose to doc, fixes #630
2016-03-12 14:20:46 -08:00
Lee Bousfield
6a147726bd
Add support for flushing headers
2016-03-03 21:01:56 -07:00
pana
1e38b13a94
docs: update docs for koa v2
...
update readme and request, response toJSON method
update readme
update readme
update readme
update readme
update readme
update readme
update docs
update doc
pretty readme
update docs
fix then callback
2016-01-17 16:05:49 -08:00
jongleberry
a09000357d
add docs for babel
2015-11-06 09:45:53 -08:00
frank
4b5ef85f29
correct a spelling error : appropriately
2015-11-05 10:13:07 +08:00
Kwyn Alice Meagher
dce805b0ad
Fix typo in example for Koa instantiation
...
need a capital Koa constant
2015-10-24 12:35:08 -07:00
Slobodan Stojanovic
863fce310b
Update docs - add template strings and arrow functions where applicable
2015-10-24 14:01:53 +02:00
pana
b6b0d02df9
update docs
2015-10-24 17:21:47 +08:00
Arjun
3045b283fd
Fixed typo in docs/api/index.md
2015-10-13 16:09:01 -04:00
Tejas Manohar
93ade5e2dd
refactor Application into a class
2015-10-13 01:19:42 -05:00
dead_horse
b2bcbcec7c
docs: add request.origin
2015-10-03 11:38:48 +08:00
Travis Jeffery
e710b4b05f
add app.context docs
2015-08-30 22:20:53 -05:00
Matthew King
05b5912912
Clarify precondition for freshness check
...
I ran into the issue from #294 and thought it was a bug since fresh was always returning false. I think it's fair that, at the very least, the docs are not completely clear on how to use `this.fresh`.
2015-07-16 00:37:41 -07:00
Jonathan Ong
915fa54bab
docs: remove performance diff between express
...
closes #442
2015-05-23 20:07:53 -07:00
Yiyu He
34c36d05c3
Merge pull request #436 from soygul/patch-1
...
Update doc example to use ctx.state
2015-04-24 01:13:00 +08:00
dead_horse
1c5cb6f691
feat: alias response.headers to response.header
2015-04-23 17:28:31 +08:00
Teoman Soygul
d5b73ebe4f
update doc example to use ctx.state
2015-04-16 15:43:45 +02:00
Jonathan Ong
963d46e46b
bump supported iojs/node versions
2015-02-01 16:35:17 -08:00
dead_horse
5a3f32dfdd
Add res.append(field, val) to append headers
2015-01-26 02:20:08 +08:00
Jonathan Ong
6cb5a9b9b8
n 0.11
2014-12-30 11:47:36 -08:00
fengmk2
3e66157472
ctx.request.href: get full request url, include protocol
, host
and originalUrl
...
Useful on those scenes need current full request url, like `OAuth`.
2014-12-27 14:17:00 -08:00
Guilherme Pacheco
6d09053dac
Update response.md
2014-12-04 15:14:05 -08:00
Matthew Mueller
6847fe68bd
added: ctx.state as the recommended namespace for passing information through middleware and routes.
2014-11-18 00:54:14 -08:00
Yiyu He
d0586bae30
docs: fix content negotiation section indentation
2014-10-12 17:00:02 +08:00
TJ Holowaychuk
30967f57ec
docs: fix content negotiation section indentation
2014-10-09 09:11:09 -07:00
dead_horse
efdd7d3716
less strict for status, close #350
...
add res.message[=]
2014-10-09 23:20:53 +08:00
Peeyush Kushwaha
cc4a549b70
fixed typo in documentation
2014-09-27 17:38:21 +05:30
bhanuc
17e98e4e7d
updated request.md and response.md
2014-09-25 17:06:23 +05:30
Jonathan Ong
85da935759
add .assert() docs
2014-09-20 13:19:07 -07:00
Ian Storm Taylor
dc0c35471c
support errors and update docs
2014-08-12 13:22:33 -07:00
dead_horse
a85889e6c6
docs: add ctx.headers alias
2014-08-09 13:39:36 +08:00
TJ Holowaychuk
f84bf23169
add docs for .throw() properties
2014-08-08 13:31:28 -07:00
dead_horse
5ca9f451a7
alias request.headers as request.header
2014-08-07 00:04:21 +08:00
dead_horse
a7b6ed0529
fix middleware gif, close #322
2014-08-04 11:28:14 +08:00
Jan Carlo Viray
a437329f79
Fix misspelled word from "backwords" to "backwards"
2014-06-17 12:40:06 -07:00
TJ Holowaychuk
db0875208d
docs
2014-06-13 09:02:06 -07:00
Jonathan Ong
31ba115231
res: add .is()
2014-06-13 00:30:59 -07:00
TJ Holowaychuk
71536b35be
remove res.statusString
2014-06-10 14:31:41 -07:00