Fully functioning finished sample code for my Using HttpClient to Consume APIs in .NET course over at Pluralsight. Code can be used as-is, or in conjunction with the course.
Covers (amongst others):
- simple CRUD
- streams
- compression
- request cancelling
- custom message handlers
- unit testing
- HttpClientFactory
- ...