resty v2.10.0 版本更新介绍
发布日期: 2023-10-14
版本号: v2.10.0
本次版本更新包含以下改进:在优化方面,增加了针对parseRequestBody和parseRequestURL函数的基准测试与单元测试,并对其性能进行了提升;新增功能包括在Response结构体中添加SetBody方法、更新依赖模块及升级版本号;修复了使用CookieJar时调试日志丢失Cookie头信息的问题,以及摘要认证中内容长度与请求体不符的异常。此外,新贡献者@icepie提交了首次代码修改。完整版本变更记录涵盖从v2.9.1到v2.10.0的更新内容。
更新内容 (中文)
发布说明
优化
- 为
parseRequestBody
添加基准测试与单元测试并通过优化改进实现 by @SVilgelm in https://github.com/go-resty/resty/pull/714 - 对
parseRequestURL
函数进行基准测试与优化改进 by @SVilgelm in https://github.com/go-resty/resty/pull/711
功能增强
- feat(enhancement): 在响应结构体中新增
SetBody
方法 #721 by @jeevatkm in https://github.com/go-resty/resty/pull/724 - chore: 更新 go mod 依赖 by @jeevatkm in https://github.com/go-resty/resty/pull/731
- chore: 版本号更新 by @jeevatkm in https://github.com/go-resty/resty/pull/719,版本发布更新 #732
问题修复
- fix: 修复使用 CookieJar 时请求调试日志丢失 Cookie 头信息的问题 #424 by @jeevatkm in https://github.com/go-resty/resty/pull/727
- 修复摘要认证中 http: ContentLength=xxx 与 Body length 0 的冲突问题 by @icepie in https://github.com/go-resty/resty/pull/730
新贡献者
- @icepie 在 https://github.com/go-resty/resty/pull/730 完成首次贡献
完整更新日志: https://github.com/go-resty/resty/compare/v2.9.1...v2.10.0
更新内容 (原始)
Release Notes
Optimizations
- Add Benchmarks and Unit tests for parseRequestBody and improve it by @SVilgelm in https://github.com/go-resty/resty/pull/714
- Benchmarks and Improvements for parseRequestURL function by @SVilgelm in https://github.com/go-resty/resty/pull/711
Enhancements
- feat(enhancement): add SetBody method in Response struct #721 by @jeevatkm in https://github.com/go-resty/resty/pull/724
- chore: update go mod dependency by @jeevatkm in https://github.com/go-resty/resty/pull/731
- chore: version number bump by @jeevatkm in https://github.com/go-resty/resty/pull/719, release updates #732
Bug Fixes
- fix: request debug log loss cookie header when cookiejar in use #424 by @jeevatkm in https://github.com/go-resty/resty/pull/727
- Fix digest auth http: ContentLength=xxx with Body length 0 by @icepie in https://github.com/go-resty/resty/pull/730
New Contributors
- @icepie made their first contribution in https://github.com/go-resty/resty/pull/730
Full Changelog: https://github.com/go-resty/resty/compare/v2.9.1...v2.10.0