HttpClient Class

System.Net.Http

Provides a base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. This is a modern, efficient, and flexible class for making HTTP requests in .NET.

HttpClient is designed to be instantiated once and re-used throughout the life of an application. Instantiating an instance of HttpClient for every request will exhaust the number of sockets available under heavy loads. This can lead to SocketException errors.

Constructors

Methods

Properties

See Also