42 Commits

Author SHA1 Message Date
killa
615d6608ab
feat: runInAnonymousContextScope support req (#5134) 2023-01-28 11:14:27 +08:00
fengmk2
9d6acfd7c3
📦 NEW: Run async function in the anonymous context scope (#5094) 2022-12-16 12:55:06 +08:00
hyj1991
a0761d65f5
feat(graceful): support serverGracefulIgnoreCode (#5027)
Co-authored-by: hugh.hyj <hugh.hyj@alibaba-inc.com>
2022-09-23 13:48:43 +08:00
TZ | 天猪
733d66989d
feat: update egg-multipart 2.x -> 3.x (#5023)
closes https://github.com/eggjs/egg/issues/5018
2022-09-21 16:05:25 +08:00
Maledong
e31c09c200
chore: fix some comments (#4937)
Fixture for some English comments in syntax.

Co-authored-by: Maledong <maledong_github@outlook.com>
2022-04-27 08:28:38 +08:00
EasonQwQ
eca6b04c1c
docs:update docs about how to extends ctx.helper (#4362) 2020-06-28 14:14:52 +08:00
Yiyu He
a9d0cf5c0d
fix: app.keys getter must have a setter either (#3891) 2019-08-21 14:40:46 +08:00
TZ | 天猪
6bfc0eb5b9
fix: error message rewrite when it has only a getter (#3796) 2019-07-17 18:02:35 +08:00
引证
489f52b5ce fix: handleRequest method should return a promise (#3820) 2019-07-17 15:10:16 +08:00
TZ | 天猪
4b13a1ffbe
chore: fix jsdocs (#3627) 2019-04-12 22:39:32 +08:00
Yiyu He
89872a76fc
Revert "feat: switch httpclient to httpclient2 for retry feature (#36… (#3622) 2019-04-12 15:25:46 +08:00
TZ | 天猪
eead318625 feat: switch httpclient to httpclient2 for retry feature (#3606) 2019-04-11 17:21:52 +08:00
Yiyu He
04adb930de fix: onClientError remove content-length header (#3544)
<!--
Thank you for your pull request. Please review below requirements.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md

感谢您贡献代码。请确认下列 checklist 的完成情况。
Bug 修复和新功能必须包含测试,必要时请附上性能测试。
Contributors guide: https://github.com/eggjs/egg/blob/master/CONTRIBUTING.md
-->

##### Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

- [ ] `npm test` passes
- [ ] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [ ] commit message follows commit guidelines

##### Affected core subsystem(s)
<!-- Provide affected core subsystem(s). -->


##### Description of change
<!-- Provide a description of the change below this comment. -->

提升测试覆盖率到 100%
2019-03-17 01:48:16 +08:00
TZ | 天猪
0fb5a96c02 fix: remove timeout log msg (#3229) 2018-11-24 01:08:16 +08:00
Hongcai Deng
d40124a25f feat: add create anonymous context to agent (#3193) 2018-11-16 16:17:40 +08:00
TZ | 天猪
7802528e12
feat: support server timeout (#3133) 2018-11-14 15:18:43 +08:00
Haoliang Gao
45e3024595
fix: don't log when rawPacket is empty (#2924) 2018-08-25 20:33:46 +08:00
Haoliang Gao
824200c11c feat: add time duration for dump config (#2485) 2018-05-03 10:24:44 +08:00
Khaidi Chu
ba708ca4e9 feat: support customized client error (#2283)
Add `onClientError` configuration to customize handling client error and get
`rawPacket`.

Connect timeout for 5000ms, GET https://eggjs.org/ for several times
2018-04-09 16:27:43 +08:00
fengmk2
a739002315 feat: support Keep-Alive Header (#2146)
https://github.com/node-modules/agentkeepalive/issues/58
2018-02-28 18:03:56 +08:00
Yiyu He
22dfaa72e3
feat: emit request and response event (#2020) 2018-01-26 11:14:13 +08:00
Yiyu He
aa46eb26d4
fix: log cookie's key when cookie exceed limit length (#1996) 2018-01-22 10:12:23 +08:00
Khaidi Chu
40df153dd7 feat: add 400 response for broken client request to instead of empty response (#1829) 2017-12-15 13:26:08 +08:00
fengmk2
503b69b2e5 feat: dump application router json
Store on `run/router.json`
2017-11-29 15:06:07 +08:00
Yiyu He
757f275a16
fix: dump async function as AsyncFunction (#1687) 2017-11-20 17:50:04 +08:00
Yiyu He
5513456e2c feat: runInBackground use location as scope name when anonymous (#1683) 2017-11-20 14:20:17 +08:00
Haoliang Gao
74c8a547cc feat: dump run/${type}_config_meta.json (#1155)
Show who define the property of the config

Closes https://github.com/eggjs/egg/issues/1132
2017-07-05 09:16:10 +08:00
Jackson Tian
b80bb1405c fix: don't cache the intermediate locals for application (#1146) 2017-07-04 16:36:52 +08:00
chenbin92
bfb8df58bc docs: typo (#1060) 2017-06-15 21:12:58 +08:00
Haoliang Gao
057bc47e4c test: add doc test (#989) 2017-06-09 10:38:24 +08:00
Yu Qi
fac3e0c730 refactor: rename private method name to symbol (#904) 2017-05-13 21:32:34 +08:00
Yiyu He
8c77e59078 feat: warn if some confused configurations exist in config (#637) 2017-03-24 18:07:32 +08:00
Yiyu He
4eaf3fb3bb feat: throw if config.keys not exists when access app.keys (#443) 2017-02-25 01:53:13 +08:00
fengmk2
80a06fcd07 feat: extend runInBackground on application (#442)
use mz-modules/sleep instead of ko-sleep
2017-02-24 12:56:52 +08:00
Haoliang Gao
3ba38b1faf feat: [BREAKING_CHANGE] reimplement view, use egg-view plugin (#402) 2017-02-23 14:31:59 +08:00
Yiyu He
b781db16c6 fix: listen CookieLimitExceed in app (#429) 2017-02-23 11:27:05 +08:00
Shawn
ed97533227 fix: close gracefully (#419) 2017-02-22 14:17:23 +08:00
Yiyu He
06b40280db feat: dump config both after loaded and ready (#377) 2017-02-15 11:03:32 +08:00
fengmk2
61f8907660 test: improve coverage to 100% (#333)
* test: remove all skip tests
2017-02-08 17:02:25 +08:00
Haoliang Gao
0e0bef541b feat: merge the api of application/agent from extend to instance (#294)
* feat: do not export app.View
* feat: remove ctx.runtime
2017-01-24 14:57:10 +08:00
Haoliang Gao
350d0f5aaf feat: [BREAKING_CHANGE] use egg-core (#44)
* feat: [BREAKING_CHANGE] use egg-core

* fix: miss app and config to publish

* deps: upgrade egg-rest

* deps: update using autod

* test: use supertest@2

* Release 0.1.0-beta.3

* feat: enable logrotater by default

* chore: add circleci

* refactor: rename logrotater => logrotator

* feat: remove log-reload event

* test: let examples pass test

* fix: remove more close event

* refactor: extract Symbol as a constant

* deps: upgrade egg-core

* Release 0.1.0-beta.4

* fix: use egg when customEgg is not specified
2016-08-18 15:42:20 +08:00
fengmk2
dadd208596 feat: init version sources (#15) 2016-07-17 12:48:09 +08:00