From 03d60f170709afe7aeab2f098e236289408ea159 Mon Sep 17 00:00:00 2001 From: Tri Nguyen Date: Thu, 31 Dec 2015 17:20:46 +0700 Subject: [PATCH] New readonly property for OkHttpClient, so able to adjust config OkHttpClient from a custom NativeMessageHandler class --- src/ModernHttpClient/Android/OkHttpNetworkHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs index 6839410..d6fc431 100644 --- a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs +++ b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs @@ -32,6 +32,8 @@ public class NativeMessageHandler : HttpClientHandler public NativeMessageHandler() : this(false, false) {} + protected OkHttpClient Client { get { return client; } } + public NativeMessageHandler(bool throwOnCaptiveNetwork, bool customSSLVerification, NativeCookieHandler cookieHandler = null) { this.throwOnCaptiveNetwork = throwOnCaptiveNetwork;