okhttputils
okhttputils copied to clipboard
[停止维护]okhttp的辅助类
- Added Android X support - Update project to Gradle 7.4 - Update to use maven publishing - Move HttpUtils out of library to avoid Unsafe SSL TrustManager and Unsafe...
//这样就不需要判断type值 /** \* 获取预约挂号和体检预约的医院信息列表 \* @param type 不传 表示获取推荐医院,0表示获取推荐体检中心 \* @param city 城市名 \* @param objectCallBack */ public void getRecommendedHospital(String type, String city, ObjectCallBack objectCallBack){ String url= ConstantValue.SERVER_URL+ConstantValue.V_DEPARTMENT_SORT; OkHttpUtils.post() .url(url)...
新增泛型序列化回调接口XHttpCallBack,简化了接口、支持返回String、Array、Entity、List、BaseEntity等等,再增加一个基类处理方法,Sample里有使用示例。
取消请求的方法为:public void cancelTag(Object tag)
因为项目中文件上传使用的是表单文件流,所以在此基础上增加文件的上传方式没有修改示例代码。git 用的还不怎么熟练。不知道怎么过滤多的编译文件