Skip to content

Releases: dotnetcore/WebApiClient

V1.2.2

12 May 05:00
Compare
Choose a tag to compare
  • 修复MulitpartTextContent使用了文本编码的问题
  • 修复JsonFormatter反序列化没有应用DataAnnotations规则的问题

V1.2.1

05 May 15:08
Compare
Choose a tag to compare
  • 修复HttpProxy的GetHashCode的bug,该bug可能会影响到代理的比较
  • 修改.net core2.1下默认使用HttpClientHandler关联HttpClient而不是SocketsHttpHandler
  • 修复JsonFormatter性能极为低下的严重性能问题
  • 重写KeyValueFormatter,使用json.net来实现,支持序列化的对象类型更丰富
  • 增加TagsAttribute参数特性类

V1.2.0

25 Apr 16:07
Compare
Choose a tag to compare
  • 修复HttpHandlerOfHttpClientHandler的bug
  • 修改HttpHandlerOfSocketsHttpHandler的一些属性
  • 重构BasicAuth类,新增Authorization基类
  • 移除IApiActionFilter的OnExceptionAsync方法;
  • 重构ApiTask的执行流程和IApiActionFilter的异常监控流程;

V1.1.9

24 Apr 07:52
Compare
Choose a tag to compare
  • 增加OAuth授权功能
  • 增加.net core2.1 SocketHttpHandler的支持
  • 增加IHttpHandler接口统一操作各种HttpMessageHandler
  • IApiActionFilter增加异常拦截功能
  • Defaults.HttpClient性能和功能优化

V1.1.8

11 Apr 05:34
Compare
Choose a tag to compare
  • 修复UrlEncodedContent可能重复的&连接符号
  • 修复HttpClient.Create创建实例时,api接口的可见性检测
  • 调整各Inteface类型的命名空间
  • 增加MultipartFormContent、JsonContent和XmlContent类型
  • 响应结果ITask<>对象的IObservable支持
  • 增加HttpProxy类型,作为ProxyAttribute默认的代理实现类
  • 增加ProxyValidator类型,用于检测代理服务的可用性
  • 提升PathQueryAttribute的性能

V1.1.7

23 Mar 13:10
Compare
Choose a tag to compare
  • ApiReturnAttribute增加可重写的IsSuccessStatusCode方法;
  • HttpHostAttribute修改为可继承,HttpMethodAttribute不再是抽象类;
  • 增加ConcurrentCache类型,HttpApiClient.Create变化为线程安全方法;
  • 增加UrlEncodedContent类型,HttpApiRequestMessage.AddFormFieldAsync性能提高;
  • 增加HeadersAttribute特性,可添加多个请求Header;

V1.1.6

08 Mar 00:51
Compare
Choose a tag to compare
  • 增加单元测试,几乎覆盖很有类型和所有公开方法
  • 支持与外部HttpMessageHandler接入
  • 修复xml序列化xml带BOM的bug
  • 修复Json序列化DateTimeFormateAttribute不生效的bug
  • 增加HttpFailureStatusException类型,ApiReturnAttribute设置EnsureSuccessStatusCode为true引发此异常
  • RetryException从继承Exception改为继承HttpRequestException
  • 增加ResultNotMatchException类型,当Retry的WhenResult失败时,作为RetryException的内部异常

V1.1.5

27 Feb 01:51
Compare
Choose a tag to compare
  • 修复不能键值序列化KeyValuePair<,>类型的bug
  • 完善异常提示消息
  • 提升cookie支持的完整度

V1.1.4

03 Feb 16:16
Compare
Choose a tag to compare
  • 修复HeaderAttribute构造器传入HttpRequestHeader枚举名称错误的问题
  • PathQueryAttribue增加Encoding属性
  • HttpApiRequestMessage增加AddQuery的Encoding参数重载

V1.1.3

25 Jan 12:36
Compare
Choose a tag to compare

此版本主要修改底层HttpClientHandler在不同框架的表现一致性

  • HttpApiClient.ConnectionLimit设置在不同框架都生效 (原有只对Net45生效)
  • 配置默认不验证服务端的证书 (Net45下使用WebRequestHandler替代原来的HttpClientHandler来实现)
  • 取消GZIP压缩请求的默认设置 (win7x64 netcore20 GZIP开启,性能只有不开启的1/3)