runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Open Source System.Net.Http.WinHttpHandler.dll

Open dotnet-bot opened this issue 11 years ago • 7 comments

dotnet-bot avatar Feb 19 '15 01:02 dotnet-bot

:+1: Is there a plan to add HTTP/2 support in here? Will it only be available on Win10?

darrelmiller avatar May 26 '15 18:05 darrelmiller

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

SidharthNabar avatar May 26 '15 18:05 SidharthNabar

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.

darrelmiller avatar May 26 '15 20:05 darrelmiller

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

SidharthNabar avatar May 27 '15 17:05 SidharthNabar

:+1:

darrelmiller avatar May 27 '15 20:05 darrelmiller

Fixed by dotnet/corefx#2149 ?

Maxwe11 avatar Jun 27 '15 09:06 Maxwe11

Yes, fixed with PR dotnet/corefx#2149

davidsh avatar Jun 27 '15 15:06 davidsh