使用装饰模式,支持apache-http和jodd-http#194
Merged
binarywang merged 13 commits intobinarywang:developfrom Apr 25, 2017
Merged
Conversation
added 12 commits
April 18, 2017 17:29
|
为什么有okhttp 不用.而改用jodd-http呢? |
Author
|
先搞定jodd-http,确定一个好的模式来支持不同的http请求框架,okhttp是后面的事情 |
Author
|
ci错误已处理 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1、使用装饰模式,支持apache-http和jodd-http
2、apache-http的相关代码基本没有变化,使用方式和以前一样
3、cp模块service类:
me.chanjar.weixin.cp.api.impl.jodd.WxCpServiceImpl
me.chanjar.weixin.cp.api.impl.apache.WxCpServiceImpl
4、mp模块service类:
me.chanjar.weixin.mp.api.impl.jodd.WxCpServiceImpl
me.chanjar.weixin.mp.api.impl.apache.WxCpServiceImpl
5、添加了RequestHttp类,可以得到当前service使用httpClient和httpProxy