HttpClient

The .NET class for sending HTTP requests and reading responses.

In more detail

Its methods are async, such as GetAsync and ReadFromJsonAsync. In ASP.NET Core create clients through IHttpClientFactory rather than new HttpClient(), so connections are reused and resilience handlers can be attached.

Related terms

Taught in

References