[iOS] [Android] Remove PNSE from some HttpClientHandler methods (#57555)
authorSteve Pfister <steveisok@users.noreply.github.com>
Tue, 17 Aug 2021 14:52:51 +0000 (10:52 -0400)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 14:52:51 +0000 (16:52 +0200)
commit57dd919ab81e8914b1c4ef63c4f8ee55bc79c347
tree5ffdf53cc981a393f8e7dfe63920a1d5599637dd
parenteeee548ba69083cce4c2a8cfb9f7222355b2d1a0
[iOS] [Android] Remove PNSE from some HttpClientHandler methods (#57555)

Since HttpClientHandler on mobile can support both the underlying native handler and SocketsHttpHandler, it doesn't make sense to always throw PNSE on some methods due to only the native handler not supporting them.

Fixes https://github.com/dotnet/runtime/issues/55986

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
src/libraries/System.Net.Http/ref/System.Net.Http.cs
src/libraries/System.Net.Http/src/ILLink/ILLink.Suppressions.LibraryBuild.xml
src/libraries/System.Net.Http/src/System.Net.Http.csproj
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.Android.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.AnyMobile.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.Apple.cs [deleted file]
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.MacCatalyst.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.iOS.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.tvOS.cs