DecaTec / Portable-WebDAV-Library

Moved to codeberg.org - https://codeberg.org/DecaTec/Portable-WebDAV-Library - The Portable WebDAV Library is a strongly typed, async WebDAV client library which is fully compliant to RFC 4918, RFC 4331 and "Additional WebDAV Collection Properties". It is implemented as .NETStandard 1.1 library in oder to be used on any platform supporting .NETStandard 1.1.
https://decatec.de
Microsoft Public License
46 stars 11 forks source link

Use HTTP/2 if the underlying implementation supports it #49

Closed SunboX closed 7 years ago

SunboX commented 7 years ago

Whether or not System.Net.Http supports HTTP/2 on a specific platform will depend on the underlying implementation on that platform. If not supported, it will fall back to HTTP/1.1

DecaTec commented 7 years ago

Do you have any source that there is a fallback to HTTP/1.1 when not supported in specific platform? I couldn't find anything on MSDN.

SunboX commented 7 years ago

I found this one here, but it's not official... so, maybe we have to try it first: https://blog.yaakov.online/using-http-2-in-net-client-applications/

DecaTec commented 7 years ago

OK, I'll test this with IIS with HTTP/2 disabled and give some feedback.

DecaTec commented 7 years ago

Good, works with IIS and HTTP/2 disabled. Fallback is indeed HTTP/1.1

SunboX commented 7 years ago

👍

DecaTec commented 7 years ago

Unfortunately, the fallback won't work on Xamarin (at least I've tried it with Android). So, the lib supports HTTP/2, but the default is still HTTP/1.1.

When HTTP/2 should be used, there are overloaded ctors and a property to switch to HTTP/2.