Commit graph

1018 commits

Author SHA1 Message Date
Vern Brandl
04e07fdc62 test: Buffer() is deprecated due to security and usability issues. so use the Buffer.alloc() instead () 2019-04-16 18:05:18 +08:00
rosald
130e363856 docs: use 'fs-extra' instead of 'fs-promise' () 2019-02-14 13:17:35 +08:00
James George
2f2078bf99 chore: Update PR-welcome badge url () 2019-02-02 09:44:11 +08:00
dead-horse
8b4e2cd3bc Release 2.7.0 2019-01-28 16:51:37 +08:00
Martin Iwanowski
b7bfa7113b feat: change set status assert, allowing valid custom statuses () 2019-01-28 16:50:27 +08:00
James George
72f325b78e chore: add pr welcoming badge () 2019-01-15 00:35:24 +08:00
call me saisai
b15115b2cb chore: Reduce unnecessary variable declarations () 2019-01-15 00:34:12 +08:00
dead-horse
ad91ce2346 chore: license 2019 2019-01-07 16:41:45 +08:00
Francisco Ryan Tolmasky I
b25e79dfb5 Mark two examples as live for the corresponding documentation change in https://github.com/koajs/koajs.com/pull/38. ()
Reviewed by @tolmasky.
2019-01-06 01:51:55 -06:00
Mikhail Bodrov
d9ef60398e chore: Optimize array split () 2019-01-03 20:48:31 +08:00
jeremiG
9be8583125 chore: replace ~~ with Math.trunc in res.length (option) () 2018-12-27 16:22:35 +08:00
James George
7e46c2058c docs: add link to the license file () 2018-12-27 16:21:54 +08:00
Douglas Wade
48993ade9b docs: Document other body types () 2018-12-12 12:33:36 +08:00
Douglas Wade
acb388bc05 docs: Add security vulnerability disclosure instructions to the Readme () 2018-12-12 12:24:18 +08:00
Douglas Wade
a007198fa2 docs: Document ctx.app.emit () 2018-12-07 15:28:23 +08:00
Douglas Wade
f90e825da9 docs: response.set(fields) won't overwrites previous header fields() 2018-12-07 15:24:51 +08:00
Vikram Rangaraj
fc93c05f68 docs: update readme to add babel 7 instructions () 2018-12-07 15:23:18 +08:00
Jordan
5560f72912 chore: use the ability of content-type lib directly () 2018-12-07 15:22:12 +08:00
dead-horse
281a04e8e1 Release 2.6.2 2018-11-10 01:43:06 +08:00
ZYSzys
325792aee9 docs: add table of contents for guide.md () 2018-11-10 01:42:08 +08:00
André Cruz
99051992a9 fix: Status message is not supported on HTTP/2 () 2018-11-10 01:41:21 +08:00
Martin Iwanowski
71aaa29591 docs: fix spelling in throw docs () 2018-11-05 17:16:27 +08:00
Jordan
bc81ca9414 chore: use res instead of this.res () 2018-11-05 17:15:58 +08:00
Martin Iwanowski
0251b38a84 test: node v11 on travis () 2018-11-01 19:18:24 +08:00
Waleed Ashraf
88b92b4315 doc: updated docs for throw() to pass status as first param. () 2018-11-01 19:17:16 +08:00
dead-horse
6c0e0d6e29 Release 2.6.1 2018-10-23 15:21:02 +08:00
fengmk2
4964242834 fix: use X-Forwarded-Host first on app.proxy present () 2018-10-23 15:20:09 +08:00
fengmk2
e01cc5a1cf
Release 2.6.0 2018-10-23 13:22:45 +08:00
Martin Michaelis
9c5c58b183 feat: use :authority header of http2 requests as host ()
close 
2018-10-23 13:21:20 +08:00
小雷
9146024e10 feat: response.attachment append a parameter: options from contentDisposition () 2018-10-08 22:43:11 +08:00
urugator
d32623baa7 docs: Update error-handling.md ()
Docs incorrectly states that exposed errors are being logged by default error listener:
"which simply log the error if error.expose is true"
https://github.com/koajs/koa/blob/master/lib/application.js#L185
2018-09-20 18:43:23 +08:00
dead-horse
e6853af649 Release 2.5.3 2018-09-11 23:24:46 +08:00
fengmk2
2ee32f50b8 fix: pin debug@~3.1.0 avoid deprecated warnning ()
closes https://github.com/koajs/koa/issues/1243
2018-09-11 23:22:22 +08:00
Clayton Ray
2180839eda docs: Update koa-vs-express.md () 2018-08-09 15:39:23 +08:00
dead-horse
41257aa91e Release 2.5.2 2018-07-12 14:16:53 +08:00
dead-horse
5fad7cd915 chore: update authors 2018-07-12 14:15:53 +08:00
dead-horse
311031421f deps: upgrade all dependencies 2018-07-12 14:14:25 +08:00
Yiyu He
0b930665a8
perf: avoid stringify when set header () 2018-07-12 14:10:12 +08:00
Yiyu He
c6b8782553 perf: cache content type's result () 2018-07-11 17:49:25 +08:00
Yiyu He
162a5b3e78 perf: lazy init cookies and ip when first time use it () 2018-07-11 11:18:39 +08:00
小菜
74170caf0b chore: fix comment & approve cov () 2018-07-04 11:33:01 +08:00
Asiel Leal
cde0bb10e9 docs: fix grammar 2018-07-01 01:30:22 +08:00
小菜
2cdbc52e38 test&cov: add test case () 2018-07-01 01:29:19 +08:00
initial-wu
02feadc4db Lazily initialize request.accept and delegate context.accept () 2018-06-25 16:13:20 +08:00
Ruben Bridgewater
8f047ddb84 fix: use non deprecated custom inspect ()
Custom inspection with the `inspect` property is deprecated and will
not work in Node.js 11 anymore. This fixes it by using the custom
inspect symbol where existent and falls back to the old style in case
it does not exist.
2018-06-25 10:34:15 +08:00
initial-wu
77a4cfb829 Simplify processes in the getter request.protocol () 2018-06-07 22:50:26 +08:00
Jason Macgowan
4d42500e76 docs: better demonstrate middleware flow () 2018-06-06 14:52:20 +08:00
initial-wu
ee1a933096 fix: Throw a TypeError instead of a AssertionError () 2018-06-06 12:55:20 +08:00
initial-wu
ef33a79874 chore: mistake in a comment () 2018-06-04 10:18:42 +08:00
initial-wu
148f26f630 chore: use this.res.socket insteadof this.ctx.req.socket ()
prefer a shorter path to the object
2018-04-27 23:51:47 +08:00