OkHttps 发布 v3.5.0 版本
重大更新: 增强:HttpTask新增Basic Auth便捷方法:basicAuth(String username, String password) 增强:HttpTask新增Bearer Auth便捷方法:bearerAuth(String token) 增强:HttpTask新增流式文件上传方法:addFilePara(String name, String type, InputStream stream) 增强:HttpTask新增流式文件上传方法:addFilePara(String name, String type, String fileName, InputStream stream) 增强:HttpTask增强setBodyPara(Object body)方法:使其可以接受InputStream类型的流式报文体参数 增强:HttpTask使用ListMap作为请求参数的内部集合容器:使其可以接受多个同名参数并可保持参数的添加顺序 增强:HTTP的HTTP.builder()方法,使之支持通过指定系统环境变量来让该方法返回不同的构建器实现类 增强:HTTP.Builder新增clearContentTypes()方法 增强:HttpResult新增allHeaders()方法 优化:HttpTask放松校验:移除 必须将路径参数占位符全部填充的 检查 优化:HttpTask请求时Content-Type请求头不再默认携带charset信息 优化:AbstractHttpClient的mediaType映射机制 完善:OkHttpBuilderImpl常见的mediaType映射 完善:DownloadHelper添加更多常见的扩展名映射 重构:java.util.function.Supplier替代com.ejlchina.okhttps.PingSupplier接口 重构:java.util.function.Consumer替代com.ejlchina.okhttps.OnCallback接口 升级:data:v1.1.2->1.4.0:https://gitee.com/ejlchina-zhxu/data/releases Mapper新增toBean(Class<T> type)、toBean(TypeRef<T> type)与toBean(Type type)方法 Array新增toList(Class<T> type)方法 DataConvertor新增:toMapper(String in)、toArray(String in)、serialize(Object object)、toBean(Type type, String in)、toList(Class<T> type, String in)方法 Deserializer新增getInstance()方法 fastjson:v1.2.79->v1.2.80 jackson:v2.12.6->v2.13.2.2 新增ListMap接口 与ArrayListMap/LinkedListMap相关实现类 过时:HttpResult的getHeaders()方法标记为已过时 过时:HttpResult.Body的getType()方法标记为已过时 ----------------------------------- 参见: https://github.com/ejlchina/okhttps https://gitee.com/ejlchina-zhxu/okhttps 软件介绍: OkHttps 是一个强大轻量 且 前后端通用的 HTTP 客户端,同时支持 WebSocket 以及 Stomp 协议的国产开源软件,还不了解的同学点下面的链接哦: 系统教程:https://okhttps.ejlchina.com/ 振兴中华,弘扬国产软件,同胞们觉得还可以的话点个 STAR 吧 ^_^: Github: https://github.com/ejlchina/okhttps Gitee: https://gitee.com/ejlchina-zhxu/okhttps