I have tried several options, the closest I've got was with httptwo, but it does not seem production ready, I've also tried with HttpClient setting version to 2.0, but the call won't pass, I think Http/2 support in .NET is not complete. Any ideas?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Currently, in the standard .NET framework, HTTP/2 is not supported in HttpClient. However, in the .NET Core framework, it is.. but it requires to be run on Windows 10 (or, I assume Windows Server 2016). You also have to use only the async methods.
There is also a package called System.Net.Http.WinHttpHandler, which you can get through Nuget that supports HTTP/2 on standard .NET