diff --git a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs index 84585b1..8b7bac6 100644 --- a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs +++ b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs @@ -14,7 +14,7 @@ namespace ModernHttpClient { - public class NativeMessageHandler : HttpMessageHandler + public class NativeMessageHandler : HttpClientHandler { readonly OkHttpClient client = new OkHttpClient(); readonly bool throwOnCaptiveNetwork; diff --git a/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs b/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs index 145521d..07f5f4a 100644 --- a/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs +++ b/src/ModernHttpClient/iOS/NSUrlSessionHandler.cs @@ -29,7 +29,7 @@ class InflightOperation public bool IsCompleted { get; set; } } - public class NativeMessageHandler : HttpMessageHandler + public class NativeMessageHandler : HttpClientHandler { readonly NSUrlSession session;