Douglas Wade
|
a007198fa2
|
docs: Document ctx.app.emit (#1284)
|
2018-12-07 15:28:23 +08:00 |
|
Waleed Ashraf
|
88b92b4315
|
doc: updated docs for throw() to pass status as first param. (#1268)
|
2018-11-01 19:17:16 +08:00 |
|
Mengdi Gao
|
c2615ecc5c
|
docs: capitalize K in word koa (#1126)
|
2018-01-30 21:05:00 -08:00 |
|
Saad Quadri
|
40a6dd2c80
|
docs: improve consistency in api code examples (#1029)
|
2017-07-20 18:01:03 -07:00 |
|
Remek Ambroziak
|
7f3d0765d7
|
docs: fix documentation to match new http-errors API (#957) (#967)
|
2017-04-21 21:49:06 +08:00 |
|
Malcolm
|
e3ccdac621
|
Clarify behavior of ctx.throw in docs (#856)
|
2016-11-25 11:51:02 +08:00 |
|
Ivan Lyons
|
614b4e1ad7
|
yield => await (#798)
|
2016-08-21 21:21:09 -07:00 |
|
Yu Qi
|
b16d24ecb8
|
add maxAge and overwrite options to ctx.cookies.set(name, value, [options]). (#742)
|
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 #350
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 #278 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 #215 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 #198
|
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 #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 |
|
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 #100
|
2013-11-24 05:06:35 -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 |
|
TJ Holowaychuk
|
c699c75c52
|
add koa Request / Response objects and delegation. Closes #52
|
2013-11-13 09:01:15 -08:00 |
|