You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-7
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,24 @@
1
1
ModernHttpClient
2
2
================
3
3
4
-
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:
4
+
This library brings the latest platform-specific networking libraries to
5
+
Xamarin applications via a custom HttpClient handler. Write your app using
6
+
System.Net.Http, but drop this library in and it will go drastically faster.
7
+
This is made possible by two native libraries:
5
8
6
-
* On iOS, [AFNetworking 1.3.3](http://afnetworking.com/)
9
+
* On iOS, [NSURLSession](https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLSession_class/Introduction/Introduction.html)
7
10
* On Android, via [OkHttp 1.2.1](http://square.github.io/okhttp/)
8
11
9
12
## Usage
10
13
11
-
The good news is, you don't have to know either of these two libraries above, using ModernHttpClient is the most boring thing in the world. Here's how it works:
14
+
The good news is, you don't have to know either of these two libraries above,
15
+
using ModernHttpClient is the most boring thing in the world. Here's how
@@ -24,7 +29,10 @@ var httpClient = new HttpClient(new OkHttpNetworkHandler());
24
29
25
30
## How can I use this in a PCL?
26
31
27
-
Using ModernHttpClient from a PCL is fairly easy with some rigging, especially if you've got some sort of IoC/DI setup - request an HttpClient in your PCL, and register it in your app. However, here's what you can do without any external dependencies:
32
+
Using ModernHttpClient from a PCL is fairly easy with some rigging, especially
33
+
if you've got some sort of IoC/DI setup - request an HttpClient in your PCL,
34
+
and register it in your app. However, here's what you can do without any
35
+
external dependencies:
28
36
29
37
```cs
30
38
// In your PCL
@@ -46,14 +54,16 @@ public static class AppDelegate
Check out Michael Ridland's blog post, [Implementing ModernHttpClient in MvvmCross](http://www.michaelridland.com/mobile/implementing-modernhttpclient-in-mvvmcross/), for more information.
64
+
Check out Michael Ridland's blog post, [Implementing ModernHttpClient in
Copy file name to clipboardExpand all lines: component/GettingStarted.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,11 @@
1
-
The good news is, you don't have to know either of these two libraries above, using ModernHttpClient is the most boring thing in the world. Here's how it works:
1
+
The good news is, you don't have to know either of these two libraries above,
2
+
using ModernHttpClient is the most boring thing in the world. Here's how it
0 commit comments