anaisbetts / ModernHttpClient

HttpClient implementations that use platform-native HTTP clients for :rocket:
MIT License
659 stars 262 forks source link

Update OkHTTP to allow to use HTTP/2 #244

Open BenDevelopment opened 7 years ago

BenDevelopment commented 7 years ago

I suggest to update the OkHTTP package to make it works with http/2. It can fix REFUSED_STREAM errors on https request. Someone can do this?

Cheesebaron commented 7 years ago

If you look at this repo it is pretty much dead. I think there are some forks updating OkHTTP.

@paulcbetts could we maybe give someone willing to bring ModernHttpClient up to snuff access to the repo or something like that? I know there is Xamarin's HttpClient handler for Android that does pretty much what you do here. But only on Android 5.x and up.

BenDevelopment commented 7 years ago

@Cheesebaron can you give me some details about Xamarin's HttpClient handler for https? Edit: I think your are talking about that: https://developer.xamarin.com/guides/android/application_fundamentals/http-stack/

nicolasesprit commented 7 years ago

And for the PRO version (paid) subscribers too. Many thanks !

Cheesebaron commented 7 years ago

@nicolasesprit with the pro version you pay for:

The only feature difference between ModernHttpClient and ModernHttpClient Pro is the ability to use untrusted SSL/TLS certificates - there is no performance or other internal differences between the two versions

You pay for untrusted SSL/TLS, not for stability or anything else regarding this library. It still fulfils that. You could also just have paid, nothing at all and used a lets encrypt cert or similar.

nicolasesprit commented 7 years ago

Of course

justintoth commented 6 years ago

We just moved our Mobile API from a windows server 2012 instance to a 2016 instance, which supports HTTP/2. Immediately the connectivity in our Xamarin iOS and Android apps stopped working, which leverage ModernHttpClient. Is the recommended approach to now switch over to AndroidClientHandler?