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

How do I configure the default HttpClientHandler ? #242

Open
mediabuff opened this issue Apr 13, 2024 · 0 comments
Open

How do I configure the default HttpClientHandler ? #242

mediabuff opened this issue Apr 13, 2024 · 0 comments

Comments

@mediabuff
Copy link

I want to force the ssl protcols to 1.2 as Windows 11 defaults to 1.3 and my server does'nt support 1.3

The configuration extensions dictionary only seems to be store and the core library does'nt leverage the key values

Please see
dotnet/runtime#77393

Additionally, it would be good if the library supports DI services like

services.AddHttpClient<MyService>() .ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler { SslProtocols = SslProtocols.Tls12 });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant