When using the HttpClientFactory of .NET Core, is it possible to somehow remove the default LoggingHttpMessageHandler?
I expect something like the below but it doesn't seem to exists
services.AddHttpClient("minos")
.RemoveHttpMessageHandler<LoggingHttpMessageHandler>();
Just for anyone needing this, I had opened an issue on the GitHub repo, and one of the contributors had replied with the following
services.RemoveAll<IHttpMessageHandlerBuilderFilter>();
Microsoft.Extensions.DependencyInjection.Extensions namespacehttps://github.com/aspnet/HttpClientFactory/issues/196#issuecomment-432755765
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With