Writing cleaner Typed HttpClient using a custom DelegatingHandler

added by DotNetKicks
12/2/2019 5:24:13 PM

319 Views

I write a lot of HttpClient, including typed client. Since I discovered Refit I use only that one, I write so less lines of code! But I thought about you! Some of you do not necessarily use Refit so I'll give you some tips for writing typed HttpClient with maximum reusability using HttpClient Message Handlers and more specifically DelegatingHandlers.


0 comments