Commit graph

53 commits

Author SHA1 Message Date
c9459b19ba Remove cookies, replace debug with debug-ms 2019-10-08 18:44:33 +00:00
2ef7846b5f Remove accepts, cache-content-type and content-type.
Replace content-disposition with one that doesn’t use safe-buffer
2019-09-29 19:17:14 +00:00
Peng Jie
219bf22237 docs(context): update link ()
* docs(context): update link

* docs(response): add code highlight
2019-07-30 14:06:19 +08:00
Peng Jie
62f29eb0c4 docs(context): update cookies link () 2019-06-26 11:07:09 +08:00
Igor Adamenko
b7fc526ea4 docs: fix typo in cookie path default value docs () 2019-06-10 14:49:53 +08:00
Douglas Wade
a007198fa2 docs: Document ctx.app.emit () 2018-12-07 15:28:23 +08:00
Waleed Ashraf
88b92b4315 doc: updated docs for throw() to pass status as first param. () 2018-11-01 19:17:16 +08:00
Mengdi Gao
c2615ecc5c docs: capitalize K in word koa () 2018-01-30 21:05:00 -08:00
Saad Quadri
40a6dd2c80 docs: improve consistency in api code examples () 2017-07-20 18:01:03 -07:00
Remek Ambroziak
7f3d0765d7 docs: fix documentation to match new http-errors API () () 2017-04-21 21:49:06 +08:00
Malcolm
e3ccdac621 Clarify behavior of ctx.throw in docs () 2016-11-25 11:51:02 +08:00
Ivan Lyons
614b4e1ad7 yield => await () 2016-08-21 21:21:09 -07:00
Yu Qi
b16d24ecb8 add maxAge and overwrite options to ctx.cookies.set(name, value, [options]). () 2016-05-26 13:31:11 +08:00
PlasmaPower
9c6969755f Correct ctx.assert documentation parameter order 2016-03-26 21:26:09 -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
pana
b6b0d02df9 update docs 2015-10-24 17:21:47 +08:00
dead_horse
b2bcbcec7c docs: add request.origin 2015-10-03 11:38:48 +08:00
Teoman Soygul
d5b73ebe4f update doc example to use ctx.state 2015-04-16 15:43:45 +02:00
dead_horse
5a3f32dfdd Add res.append(field, val) to append headers 2015-01-26 02:20:08 +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
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
dead_horse
efdd7d3716 less strict for status, close
add res.message[=]
2014-10-09 23:20:53 +08:00
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
21b7eb82b9 add originalUrl 2014-05-06 10:01:46 +08:00
TJ Holowaychuk
50ffb86a40 Merge pull request from dead-horse/host-setter
remove req.host=
2014-05-05 08:42:28 -07:00
dead_horse
f76268ba58 remove req.host=, fix docs 2014-05-05 12:45:33 +08:00
Tim Schaub
d7d3e84d16 Using property properly 2014-05-03 15:21:07 -06:00
alsotang
bef5bad738 Update context.md
ctx.type is delegated to this.response.
2014-03-08 14:19:40 +08:00
TJ Holowaychuk
b1f0abd16d Revert "add response.charset accessor and ctx.charset alias"
This reverts commit 94413b1bd4.
2014-03-06 18:05:01 -08:00
TJ Holowaychuk
94413b1bd4 add response.charset accessor and ctx.charset alias 2014-02-14 09:33:10 -08:00
TJ Holowaychuk
c0e0c7c6aa update docs for previous breaking change 2014-02-14 09:20:29 -08:00
Qiming zhao
14cdfb7fc4 fix doc, getter of type is delegated to request
Same kind of confusing thing as  mentioned, user have to remember that getters and setters of the `length` and `type` property are different.
2014-02-14 13:42:04 +08:00
Jonathan Ong
abb5686d5b docs: add note about confusing context accessors 2014-02-13 18:23:45 -08:00
Jonathan Ong
2bc3bb7327 this.respond=false for bypassing koa's response handling
closes 
2014-01-24 14:38:40 -08:00
TJ Holowaychuk
26fb6a138a add ctx.host= delegate 2014-01-07 17:22:46 -08:00
Jonathan Ong
d9e56b901d docs: clarify node response property support 2013-12-30 22:08:56 -08:00
Jonathan Ong
969614dba1 docs: manual responses are not supported
closes 
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
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
TJ Holowaychuk
c132b83bc9 docs: add context example 2013-12-18 20:35:38 -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
8e10f12d38 add ctx.remove() and res.remove(). Closes 2013-11-24 05:06:35 -08:00