[Feature] 迁移httpx至httpx2并启用HTTP/2

Open
#11,171 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by locating where AstrBot declares its Python dependencies and where it creates or configures HTTP clients. Review how those clients use httpx, then check httpx2's compatibility and HTTP/2 requirements. Done means the project uses httpx2 and explicitly enables HTTP/2; run the relevant dependency and client tests.

Written by the indexing model from the issue text.

Description

enhancement
Feature Description

重要依赖项httpx目前维护不太积极,存在风险。建议及早迁移至httpx2。另外,httpx和httpx2默认均只使用HTTP/1.1,没有启用HTTP/2,建议在AstrBot中显式声明该feature

Use Case

No response

Checklist
  • I have searched the Issue list for related features and confirmed this feature idea has never been proposed.
  • The feature I am suggesting is related to AstrBot itself, not to a specific plugin.
  • I have read and agree to the project's Code of Conduct.
  • (Optional) I am willing to submit a PR to help implement this feature.
Dominant language
Python
Stars
46.9k
Forks
3.6k
Avg merge
1d 6h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AstrBotDevs/AstrBot

All issues in AstrBotDevs/AstrBot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.