Unpopular opinion from 2020:
When it comes to ASP.NET apps I still prefer WebClient
over HttpClient
because:
- The modern implementation comes with async/awaitable task-based methods
- Has smaller memory footprint and 2x-5x faster (other answers already mention that)
- It's suggested to "reuse a single
instance of HttpClient for the lifetime of your application". But ASP.NET has no "lifetime of application", only lifetime of a request.