Commit graph

980 commits

Author SHA1 Message Date
Yiyu He
c6b8782553 perf: cache content type's result (#1218) 2018-07-11 17:49:25 +08:00
Yiyu He
162a5b3e78 perf: lazy init cookies and ip when first time use it (#1216) 2018-07-11 11:18:39 +08:00
小菜
74170caf0b chore: fix comment & approve cov (#1214) 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 (#1211) 2018-07-01 01:29:19 +08:00
initial-wu
02feadc4db Lazily initialize request.accept and delegate context.accept (#1209) 2018-06-25 16:13:20 +08:00
Ruben Bridgewater
8f047ddb84 fix: use non deprecated custom inspect (#1198)
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 (#1203) 2018-06-07 22:50:26 +08:00
Jason Macgowan
4d42500e76 docs: better demonstrate middleware flow (#1195) 2018-06-06 14:52:20 +08:00
initial-wu
ee1a933096 fix: Throw a TypeError instead of a AssertionError (#1199) 2018-06-06 12:55:20 +08:00
initial-wu
ef33a79874 chore: mistake in a comment (#1201) 2018-06-04 10:18:42 +08:00
initial-wu
148f26f630 chore: use this.res.socket insteadof this.ctx.req.socket (#1177)
prefer a shorter path to the object
2018-04-27 23:51:47 +08:00
Grand
45903f228a chore: Using "listenerCount" instead of "listeners" (#1184) 2018-04-27 23:48:51 +08:00
dead-horse
45464b5174 Release 2.5.1 2018-04-27 01:10:57 +08:00
Martin Iwanowski
2ace7044ac test: node v10 on travis (#1182) 2018-04-25 16:21:57 +08:00
Ruben Bridgewater
13086d2fcd fix tests: remove unnecessary assert doesNotThrow and api calls (#1170)
* tests: fix error verification

So far the error message was not tested at all. This change makes
sure the error will actually be tested for.

* tests: remove unnecessary api calls

`assert.doesNotThrow` does not provide any benefit since it will
only catch errors and then rethrow in case of an error.
2018-04-09 19:36:52 -07:00
Shawn Cheung
8c17517809 use this.response insteadof this.ctx.response (#1163) 2018-03-23 17:56:32 +08:00
Martin Iwanowski
9cef2db87e deps: remove istanbul (#1151) 2018-02-19 03:34:38 -08:00
Anton Harniakou
0698d67fef Update guide.md (#1150) 2018-02-16 11:56:51 -08:00
dead-horse
916f914727 Release 2.5.0 2018-02-11 17:40:10 +08:00
Yiyu He
3c23aa5b74
feat: ignore set header/status when header sent (#1137) 2018-02-11 16:25:24 +08:00
Martin Iwanowski
0923ef6182 run coverage using --runInBand (#1141) 2018-02-09 11:13:45 +08:00
Joseph Lin
e544012e9f [Update] license year to 2018 (#1130) 2018-02-06 14:01:36 -05:00
Paul Anderson
a64e4ae982 docs: small grammatical fix in api docs index (#1111) 2018-01-30 21:05:49 -08:00
Tomas Ruud
e5db6a9833 docs: fixed typo (#1112) 2018-01-30 21:05:19 -08:00
Mengdi Gao
c2615ecc5c docs: capitalize K in word koa (#1126) 2018-01-30 21:05:00 -08:00
Alexsey
6baa41178d Error handling: on non-error throw try to stringify if error is an object (#1113) 2017-12-24 20:48:44 +08:00
Nick McCurdy
53bea20e79 Use eslint-config-koa (#1105) 2017-12-24 15:01:01 +08:00
Michał Gołębiowski-Owczarek
9068316fc7 Update mgol's name in AUTHORS, add .mailmap (#1100) 2017-12-24 14:55:45 +08:00
Nick McCurdy
79c3c73452 Avoid generating package locks instead of ignoring them (#1108) 2017-12-24 14:36:17 +08:00
Mars Wong
841844ee2f chore: update copyright year to 2017 (#1095) 2017-11-12 10:06:04 -06:00
jongleberry
bd89dfcafc 2.4.1 2017-11-06 14:23:34 +00:00
jongleberry
418bb066af 2.4.0 – added missing 2.3.0 changelog 2017-11-06 14:16:32 +00:00
jongleberry
c68a6966c2 2.3.0 2017-11-06 14:03:36 +00:00
jongleberry
687b73257b
travis: test node@9 2017-11-06 13:08:21 +00:00
Riceball LEE
53a4446123 expose the Application::handleRequest method (#950)
* * expose the Application::handleRequest method to extend the context

* * minor change the handleRequest comment
2017-11-06 12:21:52 +00:00
Martin Iwanowski
85ff544f7a deps: update min engines (#1040) 2017-11-06 12:18:58 +00:00
Bernie Stern
6029064756 HTTP/2 has no status message (#1048) (#1049) 2017-11-06 12:17:43 +00:00
Sergei Osipov
18e4fafb02 Update fresh to ^0.5.2 to close vulnerability (#1086) 2017-11-06 12:00:22 +00:00
Jonas Zhang
e8a024cbc0 docs: ddd Chinese docs link for v2.x (#1092) 2017-11-03 11:13:19 +08:00
Taehwan, No
1e81ea3691 docs: update babel setup (#1077) 2017-10-18 03:22:26 -05:00
Nick McCurdy
43a1df8200 test: Remove --forceExit flag for Jest (#1071) 2017-09-26 21:58:37 -05:00
Pedro Pablo Aste Kompen
0168fd87a8 docs: Update middleware.gif (#1052) 2017-09-25 23:22:22 -05:00
Shawn Sit
e1e030cc3d docs: command is wrong for running tests (#1065) 2017-09-25 23:08:21 -05:00
JamesWang
77ca4290a1 test: replace request(app.listen()) with request(app.callback()) 2017-09-25 23:07:57 -05:00
Martin Iwanowski
7f577aff2d meta: update AUTHORS (#1067) 2017-09-25 23:02:07 -05:00
Hrvoje Šimić
f3ede44ffa docs: fix dead link to logo image (#1069) 2017-09-25 23:00:15 -05:00
Martin Iwanowski
7e78147f52 tools: remove --fix to catch lint errors (#1062) 2017-09-19 03:23:32 -05:00
Todor Stoychev
09f1b7bb1f docs: fix typo (#1058) 2017-09-13 12:58:43 -05:00
jongleberry
86ab4ae84a Revert "refactor: remove duplicate assignment in respond test (#1055)" (#1056)
This reverts commit c161c0f2e9.
2017-09-11 21:35:13 -05:00