Open Source System.Net.Http.WinHttpHandler.dll
:+1: Is there a plan to add HTTP/2 support in here? Will it only be available on Win10?
Darrel! Nice to see you here :-)
Yes - we have it on our roadmap to add HTTP/2 support to WinHttpHandler. But in order to do that, we will need the underlying stack in the OS (WinHTTP) to support it as well. The timeline for that OS feature (outside the scope of this GitHub effort) is not clear yet, but we are working with that team to drive it. When it is added, WinHttpHandler will support HTTP/2 only on the OSes that the "HTTP/2-enlightened" WinHTTP stack is available (not in Windows 10).
Currently, our team has no plans to create a managed-only .NET implementation of HTTP/2.
Thanks Sid
Thanks for the info. One other question about WinHttpHandler. What's the story for private HTTP caching? I'm curious because I see no place to set caching policies on WinHttpHandler and I have a cache implementation here https://github.com/tavis-software/Tavis.PrivateCache and I'm wondering whether it is worth spending more time on it.
WinHttpHandler is derived from HttpMessageHandler, so it behaves similar to any other handler in terms of pipelining. Looking at the repo for the PrivateCache, I see that you are inserting the Handler above HttpClientHandler - that will continue to work in .NET Core with WinHttpHandler as well as HttpClientHandler.
From the point of view of caching, WinHttpHandler has a caching policy hardcoded to “BypassCache” as defined here: https://msdn.microsoft.com/en-us/library/system.net.cache.requestcachelevel(v=vs.110).aspx
Thanks Sid
:+1:
Fixed by dotnet/corefx#2149 ?
Yes, fixed with PR dotnet/corefx#2149