Is there a way to use the new http / 2 api to send push notifications in C #?

I tried several options, the closest I had with httptwo but it doesn't seem production-ready, I've also tried with setting the HttpClient installation to 2.0, but the call won't go through, I think the Http / 2 support in .NET is incomplete ... Any ideas?

+3


source to share


1 answer


Currently in the standard .NET framework, HTTP / 2 is not supported in HttpClient. However, in the .NET Core framework, this is ... but it should run on Windows 10 (or Windows Server 2016, I assume). You should also only use async methods.



There is also a package called System.Net.Http.WinHttpHandler that you can get via Nuget which supports HTTP / 2 on standard .NET

+1


source







All Articles