Soenneker.Extensions.HttpClient
3.0.3226
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Extensions.HttpClient --version 3.0.3226
NuGet\Install-Package Soenneker.Extensions.HttpClient -Version 3.0.3226
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.HttpClient" Version="3.0.3226" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.HttpClient" Version="3.0.3226" />
<PackageReference Include="Soenneker.Extensions.HttpClient" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.HttpClient --version 3.0.3226
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.HttpClient, 3.0.3226"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.HttpClient@3.0.3226
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.HttpClient&version=3.0.3226
#tool nuget:?package=Soenneker.Extensions.HttpClient&version=3.0.3226
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Extensions.HttpClient
A collection of helpful HttpClient extension methods, like retry and auto (de)serialization
Installation
dotnet add package Soenneker.Extensions.HttpClient
SendToString()
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/data");
var responseContent = await _httpClient.SendToString(request);
SendWithError()
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/data");
MySuccessResponse? successResponse, MyErrorResponse? errorResponse = await _httpClient.SendWithError<MySuccessResponse, MyErrorResponse>(request);
TrySend()
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.example.com/data");
bool successful, HttpResponseMessage? response = await _httpClient.TrySend(request);
SendWithRetryToType<ResponseType>()
var requestData = new { Name = "John Doe" };
var response = await _httpClient.SendWithRetryToType<MyResponseType>(
HttpMethod.Post, // HTTP Method
"https://api.example.com/data", // URI
requestData, // Request body
numberOfRetries: 3, // Retry 3 times
logger: _logger, // Optional logger
baseDelay: TimeSpan.FromSeconds(2), // Exponential backoff
log: true, // Enable logging
cancellationToken: cancellationToken // Cancellation token
);
... and more
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Polly (>= 8.5.2)
- Soenneker.Extensions.HttpRequestMessage (>= 3.0.1144)
- Soenneker.Extensions.HttpResponseMessage (>= 3.0.1785)
- Soenneker.Extensions.Object (>= 3.0.3677)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Soenneker.Extensions.HttpClient:
| Package | Downloads |
|---|---|
|
Soenneker.Validators.Email.Disposable.Online
A validation module checking for disposable email addresses via online sources |
|
|
Soenneker.Cloudflare.Turnstile.Validator
Server-side validation of Cloudflare Turnstile tokens through the Siteverify API. |
|
|
Soenneker.Ipqs.Phone
Retrieves IPQualityScore validity, fraud, carrier, line-type, and risk details for US phone numbers |
|
|
Soenneker.Utils.NuGet
Queries NuGet V3 feeds for package metadata and versions, dependency metadata, and package unlisting. |
|
|
Soenneker.Validators.Yahoo.Exists
A validation module checking for Yahoo account existence |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.4027 | 0 | 9/8/2026 |
| 4.0.4026 | 0 | 9/8/2026 |
| 4.0.4025 | 0 | 9/8/2026 |
| 4.0.4024 | 0 | 9/7/2026 |
| 4.0.4023 | 0 | 9/7/2026 |
| 4.0.4022 | 0 | 9/7/2026 |
| 4.0.4021 | 71 | 9/7/2026 |
| 4.0.4020 | 79 | 9/7/2026 |
| 4.0.4019 | 71 | 9/7/2026 |
| 4.0.4018 | 295 | 9/5/2026 |
| 4.0.4017 | 143 | 9/5/2026 |
| 4.0.4016 | 142 | 9/5/2026 |
| 4.0.4015 | 211 | 9/5/2026 |
| 4.0.4014 | 121 | 9/5/2026 |
| 4.0.4012 | 214 | 9/5/2026 |
| 4.0.4011 | 127 | 9/4/2026 |
| 4.0.4010 | 169 | 9/4/2026 |
| 4.0.4009 | 117 | 9/4/2026 |
| 4.0.4007 | 217 | 9/4/2026 |
| 3.0.3226 | 494 | 4/7/2025 |
Loading failed