Use HttpClientHandler for bounded WebRequestHandler creation
ProprietaryReplace a resolved WebRequestHandler constructed directly as the handler argument of HttpClient, or returned directly from a method declared to return HttpClientHandler, with HttpClientHandler. Only an empty initializer or assignments to shared HTTP settings are supported. Handler variables, subclasses, certificate callbacks, caching, and Framework-specific timeouts require manual migration. Framework process-wide ServicePointManager and configuration settings are not transferred to the modern HTTP stack.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseHttpClientHandlermod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net3_0. UseHttpClientHandlerInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.