zhenxun_bot/zhenxun/utils
Rumio 1c5f66beee
feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951)
*  feat(http_utils): 重构网络请求工具链,增强稳定性与易用性

🔧 HTTP工具优化:
  • 全局httpx.AsyncClient管理,提升连接复用效率
  • AsyncHttpx类重构,支持临时客户端和配置覆盖
  • 新增JSON请求方法(get_json/post_json),内置重试机制
  • 兼容httpx>=0.28.0版本

🔄 重试机制升级:
  • Retry装饰器重构,提供simple/api/download预设
  • 支持指数退避、条件重试和自定义失败处理
  • 扩展异常覆盖范围,提升网络容错能力

🏗️ 架构改进:
  • 新增AllURIsFailedError统一异常处理
  • 浏览器工具模块化,提升代码组织性

* 🚨 auto fix by pre-commit hooks

* 🎨 代码格式化

* 🐛 测试修复

---------

Co-authored-by: webjoin111 <455457521@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
Co-authored-by: HibiKier <775757368@qq.com>
2025-07-03 17:39:13 +08:00
..
decorator feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
depends Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00
echart_utils Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
github_utils 重构插件商店,支持Gitee插件管理,更新相关逻辑和配置 (#1931) 2025-06-20 19:08:06 +08:00
html_template 重构插件商店,支持Gitee插件管理,更新相关逻辑和配置 (#1931) 2025-06-20 19:08:06 +08:00
manager feat(scheduler): 增强定时任务管理系统 (#1940) 2025-07-01 10:31:38 +08:00
plugin_models 提供新webui api (#1673) 2024-10-03 23:56:17 +08:00
_build_image.py 🚨 Add specific ignore items in pyright ignore 2025-01-10 12:19:11 +08:00
_build_mat.py 首次启动时提供使用web ui方式完全配置 (#1870) 2025-06-16 09:11:41 +08:00
_image_template.py 新增html详细帮助模板以及md模板和文本模板 (#1919) 2025-06-23 15:33:46 +08:00
browser.py feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
common_utils.py 提供一个插件好感度限制 (#1846) 2025-02-10 15:39:18 +08:00
enum.py 添加bot消息发送记录 (#1893) 2025-06-16 09:21:41 +08:00
exception.py feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
http_utils.py feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
image_utils.py chore/cleanup-dependencies (#1763) 2024-12-13 15:00:56 +08:00
message.py 🐛 修复获取群组时会修改群组插件关闭状态 (#1869) 2025-04-02 17:25:38 +08:00
platform.py 使用更大更清晰的用户头像 (#1939) 2025-07-01 10:30:22 +08:00
rules.py 🐛 修复群欢迎消息删除问题 (#1864) 2025-03-03 22:19:34 +08:00
user_agent.py Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00
utils.py Repair self-test 2025-01-10 12:19:11 +08:00
withdraw_manage.py Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00