Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Your experiences with ModernHttpClient?

$
0
0

Hi all

In my Xamarin.Forms app (Shared), I use System.Net.Http.HttpClient() now, to access our webservice.

Now, I have noted, that there is a specific add-on to XF called “ModernHttpClient”.
This add-on should make the http-calls via native http-handlers to iOS and Android, should be “drastically faster” then System.Net.Http.Httpliebt (at least on iOS and Andorid) and also should be very easy to implement:

var httpClient = new HttpClient(new NativeMessageHandler());

where the further code to the HttpClient should be fully compatible.

Notes on the project website:

This library brings the latest platform-specific networking libraries to Xamarin applications via a custom HttpClient handler. Write your app using System.Net.Http, but drop this library in and it will go drastically faster. This is made possible by two native libraries:

Questions:

…but drop this library in and it will go drastically faster…

Can anybody confirm, that ModernHttpClient is “drastically faster” than the System.Net.HttpClient (and.. how much is “drastically faster”)?

Is ModernHttpClient really fully compatible with System.Net.HttpClient (no changes needed in code)?

Has anybody any problems with ModernHttpClient?

Thanks for any feedback.

I think, this thread (after it has filled with your comments :-) will become interesting for every XF-Developer that need Webservice-Access…


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>