sjdirect / abot

Cross Platform C# web crawler framework built for speed and flexibility. Please star this project! +1.
Apache License 2.0
2.25k stars 560 forks source link

How do I configure the default HttpClientHandler ? #242

Open mediabuff opened 7 months ago

mediabuff commented 7 months ago

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 });