how to set HttpClientHandler when registering typed HttpClient?
title. is it possible to register an
HttpClientHandler
to a typed HttpClient
?4 Replies
given the below registration
is it possible?
i see no property or method that will allow this
.AddHttpClient<ICatalogService, CatalogService>().AddHttpMessageHandler<MyHandler>()
there is also a Func<IServiceProvider, DelegatingHandler>
overload if you need access to thatOh right
I forgot to mention yesterday that the HTTPClient returns a builder by itself
You should probably specify it from there
I just found that ClientHandler is MessageHandler