Commit graph

39 commits

Author SHA1 Message Date
Jeff
a245d18a13 docs: Update response.socket (#1357)
* docs: Include `dead-horse`'s comment 

https://github.com/koajs/koa/pull/1355#discussion_r302404837

* Update docs/api/response.md

Polish English

Co-Authored-By: Martin Iwanowski <martin@iwanowski.se>
2019-08-16 01:31:15 +08:00
Peng Jie
219bf22237 docs(context): update link (#1354)
* docs(context): update link

* docs(response): add code highlight
2019-07-30 14:06:19 +08:00
Jeff
ff70bdc75a fix: typo on document (#1355) 2019-07-11 15:44:52 +08:00
Douglas Wade
48993ade9b docs: Document other body types (#1285) 2018-12-12 12:33:36 +08:00
Douglas Wade
f90e825da9 docs: response.set(fields) won't overwrites previous header fields(#1282) 2018-12-07 15:24:51 +08:00
小雷
9146024e10 feat: response.attachment append a parameter: options from contentDisposition (#1240) 2018-10-08 22:43:11 +08:00
Saad Quadri
40a6dd2c80 docs: improve consistency in api code examples (#1029) 2017-07-20 18:01:03 -07:00
Hartley Melamed
0c44c11ce3 Updates documentation to include reference for RFC2324 (HTTP Status 418) (#1028) 2017-07-19 11:04:59 -07:00
haoxin
9f2182dec7 docs: fix typo (#1023) 2017-07-13 10:52:07 -07:00
Chiahao Lin
87cde82399 docs: modified examples using the wrong keyword (yield -> await) (#1021) 2017-07-07 00:48:31 -07:00
Kareem Kwong
0a7856ca15 docs: Add note about overwriting charset in response.type (#993) 2017-06-12 11:37:16 -07:00
Francisco Presencia
3bbb74b3ee docs: added note about arrays (#964)
Added note about arrays being returned as JSON.
2017-04-23 16:17:48 -07:00
George Chung
cd5d6a1c37 docs: reorganize "response.status=" section (#966)
Reference: https://github.com/jshttp/statuses/blob/v1.2.0/src/iana.json
Since koa@2.2.0 depends statuses@1.2.0
2017-04-21 15:50:39 +08:00
Lee Bousfield
152b6d73b7 Fix response.status default value documentation (#889)
Resolves #888, also see #705
2017-02-18 13:57:45 -08: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
Jonathan Ong
d768ed83b6 docs: note stream error handling and destruction. ref: #612 2016-03-12 14:22:28 -08:00
Lee Bousfield
6a147726bd Add support for flushing headers 2016-03-03 21:01:56 -07:00
pana
b6b0d02df9 update docs 2015-10-24 17:21:47 +08:00
dead_horse
1c5cb6f691 feat: alias response.headers to response.header 2015-04-23 17:28:31 +08:00
dead_horse
5a3f32dfdd Add res.append(field, val) to append headers 2015-01-26 02:20:08 +08:00
Guilherme Pacheco
6d09053dac Update response.md 2014-12-04 15:14:05 -08:00
dead_horse
efdd7d3716 less strict for status, close #350
add res.message[=]
2014-10-09 23:20:53 +08:00
bhanuc
17e98e4e7d updated request.md and response.md 2014-09-25 17:06:23 +05:30
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
Jonathan Ong
fdbd16acc3 remove response.append(), use vary module 2014-06-05 16:06:15 -07: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
aa08845c70 remove app.jsonSpaces setting. Closes #202 2014-01-31 18:39:47 -08:00
pana
420a6154bc update document 2014-01-17 16:30:35 +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
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
TJ Holowaychuk
8e10f12d38 add ctx.remove() and res.remove(). Closes #100 2013-11-24 05:06:35 -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