![]() |
VOOZH | about |
dotnet add package SimplyWorks.HttpExtensions --version 8.1.2
NuGet\Install-Package SimplyWorks.HttpExtensions -Version 8.1.2
<PackageReference Include="SimplyWorks.HttpExtensions" Version="8.1.2" />
<PackageVersion Include="SimplyWorks.HttpExtensions" Version="8.1.2" />Directory.Packages.props
<PackageReference Include="SimplyWorks.HttpExtensions" />Project file
paket add SimplyWorks.HttpExtensions --version 8.1.2
#r "nuget: SimplyWorks.HttpExtensions, 8.1.2"
#:package SimplyWorks.HttpExtensions@8.1.2
#addin nuget:?package=SimplyWorks.HttpExtensions&version=8.1.2Install as a Cake Addin
#tool nuget:?package=SimplyWorks.HttpExtensions&version=8.1.2Install as a Cake Tool
👁 Build and Publish NuGet Package
👁 NuGet Version
👁 License: MIT
A lightweight .NET library that provides useful extensions for HTTP operations, including JSON serialization/deserialization, HTTP client factory helpers, and API client abstractions.
Install via NuGet Package Manager:
dotnet add package SimplyWorks.HttpExtensions
Or via Package Manager Console:
Install-Package SimplyWorks.HttpExtensions
using SW.HttpExtensions;
// Deserialize JSON response to strongly typed object
var response = await httpClient.GetAsync("api/users");
var users = await response.Content.ReadAsAsync<List<User>>();
using SW.HttpExtensions;
// POST with automatic JSON serialization
var user = new User { Name = "John", Email = "john@example.com" };
var response = await httpClient.PostAsync("api/users", user);
// POST with automatic deserialization
var createdUser = await httpClient.PostAsync<User>("api/users", user);
// GET with automatic deserialization
var users = await httpClient.GetAsync<List<User>>("api/users");
// PUT with automatic JSON serialization
await httpClient.PutAsync("api/users/1", user);
using SW.HttpExtensions;
// Create client with base address and JWT authentication
var client = httpClientFactory.CreateClient(
new Uri("https://api.example.com"),
jwt: "your-jwt-token"
);
using SW.HttpExtensions;
// Add JWT token parameters from configuration
services.AddJwtTokenParameters(options =>
{
// Configure JWT options
});
// Add API client with options
services.AddApiClient<IUserApi, UserApiClient, UserApiMock, UserApiOptions>(options =>
{
options.BaseUrl = "https://api.example.com";
options.Mock = false;
});
This project is licensed under the MIT License - see the LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any bugs or have feature requests, please submit an issue.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. 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. |
Showing the top 5 NuGet packages that depend on SimplyWorks.HttpExtensions:
| Package | Downloads |
|---|---|
|
SimplyWorks.Infolink.Sdk
Package Description |
|
|
SimplyWorks.Bus
A lightweight .NET 8 message bus library built on RabbitMQ for ASP.NET Core applications. Provides simple publish-subscribe patterns, typed consumers, broadcasting, automatic retries, and JWT integration. Visit GitHub for full documentation and examples. |
|
|
SimplyWorks.Mtm.Sdk
Package Description |
|
|
SimplyWorks.CqApi
Convention-based REST API framework for .NET that eliminates boilerplate code by automatically routing HTTP requests to handler classes based on folder structure and namespaces. Build CQRS APIs with zero controllers. |
|
|
SimplyWorks.ExcelImport
A .NET library for reading, parsing, and validating Excel files with type-safe operations, data annotation validation, and Entity Framework integration. Supports batch processing with comprehensive error handling. See GitHub for full documentation and examples. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.1.2 | 714 | 1/22/2026 |
| 8.1.1 | 1,351 | 1/12/2026 |
| 8.1.0 | 1,702 | 9/16/2025 |
| 8.0.8 | 730 | 5/28/2025 |
| 8.0.0 | 2,999 | 1/20/2025 |
| 6.1.3 | 1,289 | 12/11/2024 |
| 6.1.1 | 3,178 | 7/24/2023 |
| 6.1.0 | 300 | 7/24/2023 |
| 6.0.2 | 523 | 12/12/2024 |
| 6.0.0 | 26,065 | 2/7/2022 |
| 5.1.2 | 465 | 1/7/2025 |
| 5.1.1 | 1,157 | 12/12/2024 |
| 5.0.2 | 2,939 | 12/27/2021 |
| 5.0.0 | 60,915 | 10/23/2021 |
| 2.0.46 | 2,621 | 10/22/2021 |
| 2.0.44 | 26,888 | 1/19/2021 |
| 2.0.43 | 10,273 | 12/17/2020 |
| 2.0.42 | 672 | 12/17/2020 |
| 2.0.40 | 16,876 | 12/13/2020 |
| 2.0.36 | 1,487 | 12/6/2020 |