Author | lifuzhe |
---|---|
3307732694@qq.com | |
lifuzhe15010936604 |
一个对OkHttp封装的简单易用型HTTP请求和文件下载管理框架
- 简化OkHttp使用
- 支持GET,POST,PUT,DELETE,HEAD,PATCH
- 支持文件下载
- 支持返回bean对象
- 支持返回json String数据
- 支持返回JsonObject对象
- 支持https请求
- 支持文件上传
- 其他
将HttpTools作为依赖库导入Eclipse工程或者Studio工程
fastjson-1.1.46.android.jar
okhttp-3.2.0.jar
OkHttpTools.jar
okio-1.6.0.jar
ToolsFinal-1.1.5-release.jar
在你的Application中初始化OkHttpTools
OkHttpApp.init();
具体的API请参考demo
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.