About 15,800 results
Open links in new tab
  1. HttpClient Class (System.Net.Http) | Microsoft Learn

    // HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static readonly HttpClient client = new HttpClient(); static async Task Main() { // Call asynchronous network …

  2. How To Implement HttpClient in C# (4 Ways) - DEV Community

    Sep 3, 2025 · HttpClient in .NET simplifies calling REST APIs by sending HTTP requests and receiving responses. It supports GET, POST, PUT, and DELETE methods with async operations.

  3. Make HTTP requests with the HttpClient - .NET | Microsoft Learn

    Learn how to make HTTP requests and handle responses with the HttpClient in .NET.

  4. HttpClient guidelines for .NET - .NET | Microsoft Learn

    Oct 22, 2025 · Learn about using HttpClient instances to send HTTP requests and how you can manage clients using IHttpClientFactory in your .NET apps.

  5. System.Net.Http.HttpClient class - .NET | Microsoft Learn

    Jan 17, 2025 · HttpClient pools HTTP connections where possible and uses them for more than one request. This can have a significant performance benefit, especially for HTTPS requests, as the …

  6. HttpClient Constructor (System.Net.Http) | Microsoft Learn

    HttpClient is intended to be instantiated once and reused throughout the life of an application. Instantiating an HttpClient class for every request will exhaust the number of sockets available under …

  7. Make HTTP requests using IHttpClientFactory in ASP.NET Core

    Aug 28, 2025 · Learn about using the IHttpClientFactory interface to manage logical HttpClient instances in ASP.NET Core.