VOOZH about

URL: https://www.nuget.org/packages/Soenneker.Extensions.HttpClient/

⇱ NuGet Gallery | Soenneker.Extensions.HttpClient 4.0.3841




👁 Image
Soenneker.Extensions.HttpClient 4.0.3841

Prefix Reserved
dotnet add package Soenneker.Extensions.HttpClient --version 4.0.3841
 
 
NuGet\Install-Package Soenneker.Extensions.HttpClient -Version 4.0.3841
 
 
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="4.0.3841" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.HttpClient" Version="4.0.3841" />
 
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.HttpClient" />
 
Project file
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 4.0.3841
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Extensions.HttpClient, 4.0.3841"
 
 
#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@4.0.3841
 
 
#: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=4.0.3841
 
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.HttpClient&version=4.0.3841
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image

👁 alternate text is missing from this package README image
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 net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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

A validation module checking Cloudflare Turnstile tokens

Soenneker.Ipqs.Phone

A utility library for IPQualityScore phone related operations

Soenneker.Utils.NuGet

A utility library for various NuGet related operations

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.3841 0 6/18/2026
4.0.3838 82 6/18/2026
4.0.3837 153 6/17/2026
4.0.3836 165 6/17/2026
4.0.3834 263 6/17/2026
4.0.3832 269 6/16/2026
4.0.3831 237 6/16/2026
4.0.3830 359 6/15/2026
4.0.3829 134 6/15/2026
4.0.3828 384 6/14/2026
4.0.3827 90 6/14/2026
4.0.3826 525 6/11/2026
4.0.3825 227 6/11/2026
4.0.3823 312 6/10/2026
4.0.3821 258 6/10/2026
4.0.3819 312 6/10/2026
4.0.3818 607 6/10/2026
4.0.3817 414 6/9/2026
4.0.3815 163 6/9/2026
4.0.3814 428 6/9/2026
Loading failed

Update actions/checkout action to v7 (#4442)