Skip to content

lifuzhe/OkHttpTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OkHttpTools

Author lifuzhe
E-mail 3307732694@qq.com
WeChat lifuzhe15010936604

OkHttpTools演示

image

OkHttpTools简介

一个对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

License

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.

Releases

No releases published

Packages

No packages published

Languages