System.Net.Http.WinHttpHandler 10.0.9 (original) (raw)

About

This package provides an HttpMessageHandler implementation backed by Windows HTTP Services (WinHTTP). While the use of the default HttpClientHandler is highly recommended for applications targeting modern .NET, WinHttpHandler might help migration scenarios by providing an alternative HTTP backend for Windows that works consistently accross .NET Framework and modern .NET.

Key Features

How to Use

using System.Net;

using WinHttpHandler handler = new()
{
    ServerCredentials = new NetworkCredential("usr", "pwd")
};

using HttpClient client = new(handler);
using HttpRequestMessage request = new(HttpMethod.Get, "https://httpbin.org/basic-auth/usr/pwd");
using HttpResponseMessage response = await client.SendAsync(request);

Console.WriteLine($"Status: {response.StatusCode}");
if (response.IsSuccessStatusCode)
{
    string content = await response.Content.ReadAsStringAsync();
    Console.WriteLine(content);
}

Main Types

The main types provided by this library are:

Additional Documentation

Feedback & Contributing

System.Net.Http.WinHttpHandler is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed.
.NET Core netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed.
.NET Standard netstandard2.0 is compatible. netstandard2.1 was computed.
.NET Framework net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed.
MonoAndroid monoandroid was computed.
MonoMac monomac was computed.
MonoTouch monotouch was computed.
Tizen tizen40 was computed. tizen60 was computed.
Xamarin.iOS xamarinios was computed.
Xamarin.Mac xamarinmac was computed.
Xamarin.TVOS xamarintvos was computed.
Xamarin.WatchOS xamarinwatchos was computed.

NuGet packages (106)

Showing the top 5 NuGet packages that depend on System.Net.Http.WinHttpHandler:

Package Downloads
Grpc.Net.Client .NET client for gRPC 761.7M
Microsoft.Graph.Core Microsoft Graph Core Client Library implements core functionality used by Microsoft Graph client libraries. 234.3M
Microsoft.Kiota.Http.HttpClientLibrary Kiota Http provider implementation for dotnet with HttpClient. 105.0M
VaultSharp The most comprehensive .NET Library for HashiCorp's Vault which is a modern secret management system. * VaultSharp supports all Auth methods, all Secrets Engines and most System Apis supported by Vault. * VaultSharp has first class support for Consul and Enterpise Vault APIs etc. * Enterprise APIs like Control Groups, Transform Secrets Engine & KMIP Secrets Engine etc. This library is built with .NET Standard 2.0, .NET Standard 2.1, 4.6.2, 4.7.2*, 4.8, .NET 6, .NET 7 and .NET 8 and hence is cross-platform across .NET Core 2.x, 3.x, .NET Frameworks 4.x, Xamarin iOS, Android, Mac, UWP etc. 38.1M
Microsoft.Azure.DocumentDB Please note, a newer package, Microsoft.Azure.Cosmos, is available. While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade. See https://aka.ms/migrate-to-cosmos-dotnet-v3 for more details. This client library enables client applications to connect to Azure Cosmos DB via the NoSQL API. Azure Cosmos DB is a globally distributed, multi-model database service. 27.2M

GitHub repositories (36)

Showing the top 20 popular GitHub repositories that depend on System.Net.Http.WinHttpHandler:

Repository Stars
PowerShell/PowerShell PowerShell for every system! 53.9K
dotnet/runtime .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps. 18.0K
win-acme/win-acme Automate SSL/TLS certificates on Windows with ease 5.7K
grpc/grpc-dotnet gRPC for .NET 4.5K
netwrix/pingcastle PingCastle - Get Active Directory Security at 80% in 20% of the time 2.9K
aspnet/KestrelHttpServer [Archived] A cross platform web server for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore 2.6K
BedrockLauncher/BedrockLauncher 1.2K
aspnet/Benchmarks Benchmarks for ASP.NET Core 1.2K
AlexWan/OsEngine Open Source algo trading platform 993
dotnet/dotnet-api-docs .NET API reference documentation (.NET 5+, .NET Core, .NET Framework) 917
mili-tan/AuroraDNS.GUI 纯净抗污染,简单轻量级 795
Kyrodan/KeeAnywhere A cloud storage provider plugin for KeePass Password Safe 745
PlayFab/consuldotnet .NET API for Consul (http://www.consul.io/) 690
chummer5a/chummer5a Character generator for Shadowrun 5th edition 633
apache/arrow-adbc Database connectivity API standard and libraries for Apache Arrow 596
DataDog/dd-trace-dotnet .NET Client Library for Datadog APM 566
simple-acme/simple-acme A simple cross platform ACME client (for use with Let's Encrypt et al.) 544
rajanadar/VaultSharp A comprehensive cross-platform .NET Library for HashiCorp's Vault, a secret management tool 540
microsoft/RTVS R Tools for Visual Studio. 393
VSadov/Satori Experimenting with dotnet runtime. 373

Include prerelease

Include vulnerable

Include deprecated

Version Downloads Last Updated
11.0.0-preview.5.26302.115 546 6/9/2026
11.0.0-preview.4.26230.115 810 5/12/2026
11.0.0-preview.3.26207.106 1,809 4/14/2026
11.0.0-preview.2.26159.112 1,307 3/10/2026
11.0.0-preview.1.26104.118 2,275 2/10/2026
10.0.9 7,697 6/9/2026
10.0.8 51,080 5/12/2026
10.0.7 138,185 4/21/2026
10.0.6 21,786 4/14/2026
10.0.5 228,308 3/12/2026
10.0.4 8,008 3/10/2026
10.0.3 108,439 2/10/2026
10.0.2 350,231 1/13/2026
10.0.1 82,427 12/9/2025
9.0.17 436 6/9/2026
9.0.16 9,775 5/12/2026
9.0.15 29,140 4/14/2026
9.0.14 57,621 3/10/2026
9.0.13 5,311 2/10/2026
9.0.12 9,444 1/13/2026