resty v3.0.0-beta.5 版本更新介绍
发布日期: 2025-12-14
版本号: v3.0.0-beta.5
Resty库发布了v3.0.0-beta.5测试版,提供了升级至v3版本的指南。此版本包含一个关于数据前缀空格处理的错误修复,并在功能方面增强了EventSource的TLS客户端配置支持、为事件打开时添加了响应头参数,以及为Server-Sent Events(SSE)增加了请求失败的事件回调函数。此外,还感谢了新的贡献者。
更新内容 (中文)
v3 Beta 版本发布
v3 升级指南
https://resty.dev/docs/upgrading-to-v3/
新功能与增强功能
https://resty.dev/docs/new-features-and-enhancements/
错误修复
- 修复:仅移除数据前缀中的一个空格 #1044 由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1075 中完成
功能与增强
- 功能:在 EventSource 中添加 TLS客户端配置器接口支持 #1032 由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1072 中完成
- 功能:在 EventOpenFunc 中添加响应头参数 #1060 由 @yoogoc 在 https://github.com/go-resty/resty/pull/1073 中完成
- 功能:SSE 添加请求失败事件回调函数 #1041 由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1076 中完成
- 发布:版本升级至 v3.0.0-beta.5 由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1077 中完成
新贡献者
- @yoogoc 在 https://github.com/go-resty/resty/pull/1073 中作出了首次贡献
完整变更日志:https://github.com/go-resty/resty/compare/v3.0.0-beta.4…v3.0.0-beta.5
更新内容 (原始)
v3 Beta Release
v3 Upgrade Guide
https://resty.dev/docs/upgrading-to-v3/
New Features and Enhancements
https://resty.dev/docs/new-features-and-enhancements/
Bug Fixes
- fix: remove only one whitespace from data prefix #1044 by @jeevatkm in https://github.com/go-resty/resty/pull/1075
Features & Enhancements
- feat: add TLSClientConfiger interface support into EventSource #1032 by @jeevatkm in https://github.com/go-resty/resty/pull/1072
- feat: add response header argument in EventOpenFunc #1060 by @yoogoc in https://github.com/go-resty/resty/pull/1073
- feat: SSE add request failure event callback function #1041 by @jeevatkm in https://github.com/go-resty/resty/pull/1076
- release: version bump to v3.0.0-beta.5 by @jeevatkm in https://github.com/go-resty/resty/pull/1077
New Contributors
- @yoogoc made their first contribution in https://github.com/go-resty/resty/pull/1073
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-beta.4...v3.0.0-beta.5