Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 FIX: Allow override HttpClientNext #5037

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Sep 28, 2022

#5000

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@@ -293,7 +294,7 @@ class EggApplication extends EggCore {
get httpclient() {
if (!this[HTTPCLIENT]) {
if (this.config.httpclient.useHttpClientNext) {
this[HTTPCLIENT] = new HttpClientNext(this);
this[HTTPCLIENT] = new this.HttpClientNext(this);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前的功能遗漏

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是过渡期的写法才会分开 urllib3 和 urllib2,等 4.0 发布就直接上 urllib 3 了

@codecov
Copy link

codecov bot commented Sep 28, 2022

Codecov Report

Base: 99.68% // Head: 99.68% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (631b30d) compared to base (694142a).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5037   +/-   ##
=======================================
  Coverage   99.68%   99.68%           
=======================================
  Files          35       35           
  Lines        3532     3533    +1     
  Branches      523      523           
=======================================
+ Hits         3521     3522    +1     
  Misses         11       11           
Impacted Files Coverage Δ
lib/egg.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fengmk2 fengmk2 merged commit 7ee19e8 into master Sep 28, 2022
@fengmk2 fengmk2 deleted the allow-override-HttpClientNext branch September 28, 2022 15:00
iblogc pushed a commit to iblogc/egg that referenced this pull request Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant