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

feat: add defaultArgs on HttpClient #261

Merged
merged 2 commits into from
Jul 18, 2017
Merged

feat: add defaultArgs on HttpClient #261

merged 2 commits into from
Jul 18, 2017

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jul 17, 2017

No description provided.

@mention-bot
Copy link

@fengmk2, thanks for your PR! By analyzing the history of the files in this pull request, we identified @popomore and @dead-horse to be potential reviewers.

@fengmk2 fengmk2 added the bug label Jul 17, 2017
self.request(url, args)
.catch(done)
Copy link
Member Author

Choose a reason for hiding this comment

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

fix promise bug too.

@popomore
Copy link
Member

catch 放上面应该只处理当前 request 的错误,显示是会处理之前所有的 request 的异常。

不过 promise 的递归比较难维护。

@fengmk2
Copy link
Member Author

fengmk2 commented Jul 18, 2017

callback twice 的历史问题终于找到根本原因 nodejs/node#14333

@codecov
Copy link

codecov bot commented Jul 18, 2017

Codecov Report

Merging #261 into master will increase coverage by 0.41%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #261      +/-   ##
==========================================
+ Coverage   97.41%   97.83%   +0.41%     
==========================================
  Files           4        4              
  Lines         542      553      +11     
  Branches      136      139       +3     
==========================================
+ Hits          528      541      +13     
+ Misses         14       12       -2
Impacted Files Coverage Δ
lib/httpclient2.js 96.22% <100%> (+0.39%) ⬆️
lib/httpclient.js 100% <100%> (+5.71%) ⬆️
lib/urllib.js 97.75% <50%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 677e2ef...aba453f. Read the comment docs.

@fengmk2 fengmk2 merged commit 4492869 into master Jul 18, 2017
@fengmk2 fengmk2 deleted the support-defaultArgs branch July 18, 2017 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants