Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android specific HttpClientHandler support #46646

Closed
marek-safar opened this issue Jan 6, 2021 · 1 comment
Closed

Android specific HttpClientHandler support #46646

marek-safar opened this issue Jan 6, 2021 · 1 comment
Assignees
Labels
area-System.Net.Http enhancement Product code improvement that does NOT require public API changes/additions os-android
Milestone

Comments

@marek-safar
Copy link
Contributor

Implement support for native Android specific HttpClientHandlers as described in the design proposal https://github.com/dotnet/designs/blob/main/accepted/2020/mono-convergence/platform-specific-httpclient.md#xamarinandroid-1

@ghost
Copy link

ghost commented Jan 6, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Implement support for native Android specific HttpClientHandlers as described in the design proposal https://github.com/dotnet/designs/blob/main/accepted/2020/mono-convergence/platform-specific-httpclient.md#xamarinandroid-1

Author: marek-safar
Assignees: steveisok
Labels:

area-System.Net.Http, os-android

Milestone: 6.0.0

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jan 6, 2021
@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Jan 6, 2021
@karelz karelz added the enhancement Product code improvement that does NOT require public API changes/additions label Jan 7, 2021
steveisok pushed a commit that referenced this issue Mar 2, 2021
Implements #46646 and #47083 (comment)

Per https://github.com/dotnet/designs/blob/main/accepted/2020/mono-convergence/platform-specific-httpclient.md , the default HttpClientHandler will be the native handler specific to Android, iOS, and tvOS.

To fall back to SocketsHttpHandler, simply set the System.Net.Http.UseNativeHttpHandler AppContext switch.

AppContext.SetSwitch("System.Net.Http.UseNativeHttpHandler", true);
@ghost ghost locked as resolved and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http enhancement Product code improvement that does NOT require public API changes/additions os-android
Projects
None yet
Development

No branches or pull requests

4 participants