改善 HTTP 客户端连接/ Improve HTTP Client connection #308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
你好
当前的 HttpClient 管理似乎过于复杂,我将其改得更简单
https://www.siakabaro.com/how-to-manage-httpclient-connections-in-net/
为了在新的 .NET 版本上更好地支持 HTTP 客户端,需要添加对 .NET 8/10 的支持,并使用 SocketsHttpHandler 对 CreateHttpClient 进行小规模重构
The current HttpClient managment seems to be overcomplicated, I changed it to be simpler
https://www.siakabaro.com/how-to-manage-httpclient-connections-in-net/
To have better support for the HTTP Client on the new .NET Version, it's necessary to add support to .NET 8/10 and to a small refactor on CreateHttpClient by using SocketsHttpHandler