Code for my "An in-depth look at HttpClient" session at Techorama 2019
Description of the session:
"Applications, ranging from ASP.NET Core web apps over mobile Xamarin apps and Windows apps to Console apps often integrate with an API. For that, HttpClient is the default and best option. But there’s a lot more to using it than just sending a request and reading out the response. In this session you’ll get an in depth look at using HttpClient, from the internals over improving basic CRUD interaction with streams to working with compression. You'll also learn how and why to cancel requests that are no longer needed.
Additionally, you’ll learn how to improve the reliability of your application with custom HttpMessageHandlers, and you'll learn how (and why) to use the new HttpClientFactory for HttpClient instance management."