abot icon indicating copy to clipboard operation
abot copied to clipboard

How do I configure the default HttpClientHandler ?

Open mediabuff opened this issue 2 months ago • 0 comments

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 https://github.com/dotnet/runtime/issues/77393

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

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

mediabuff avatar Apr 13 '24 12:04 mediabuff