AsNet.Shared.Http
1.2.0
dotnet add package AsNet.Shared.Http --version 1.2.0
NuGet\Install-Package AsNet.Shared.Http -Version 1.2.0
<PackageReference Include="AsNet.Shared.Http" Version="1.2.0" />
<PackageVersion Include="AsNet.Shared.Http" Version="1.2.0" />
<PackageReference Include="AsNet.Shared.Http" />
paket add AsNet.Shared.Http --version 1.2.0
#r "nuget: AsNet.Shared.Http, 1.2.0"
#:package AsNet.Shared.Http@1.2.0
#addin nuget:?package=AsNet.Shared.Http&version=1.2.0
#tool nuget:?package=AsNet.Shared.Http&version=1.2.0
AsNet.Shared.Http v1.2.0
Descripción
AsNet.Shared.Http es una biblioteca .NET que proporciona funcionalidades optimizadas y estabilizadas para facilitar el consumo y envío de información a través de servicios HTTP, APIs, microservicios y servicios web como SQL Server Reporting Services.
Esta versión incluye mejoras significativas en rendimiento, serialización JSON personalizada y soporte para múltiples frameworks modernos.
Características principales
- Serialización JSON personalizada usando
System.Text.JsonyDahomey.Json. - Conversor
TimeSpanJsonConverterpara manejar propiedadesTimeSpanconSystem.Text.Json. - Compatible con
.NET Standard 2.1,.NET 8.0,.NET 9.0y.NET 10.0. - Clases para inyección de dependencias (DI) para servicios Web API.
- Métodos asíncronos que retornan
Tuple<T, HttpResponseMessage, ApiException>. - Métodos
GETyDELETEque aceptanBodyRequest. - Métodos
GetByteArray,GetAsyncEnumerable,PostAsyncEnumerableyGetFromJsonAsyncEnumerablepara procesamiento eficiente de streams. - Integración con
HttpClientFactoryy soporte para nombres personalizados deHttpClient. - Configuración de
TimeoutyHandlerLifetimedesdeappsettings.json.
Configuración
Ejemplo de configuración en appsettings.json:
"AsNet": {
"Http": {
"HttpSettings": {
"HandlerLifetime": "00:05:00",
"Timeout": "00:02:00",
"DefaultClientName": "AsNetSharedHttp",
"IPStackURL": "http://api.ipstack.com",
"IPStackAccessKey": ""
}
}
}
| Product | Versions 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- AsNet.Shared (>= 3.2.0)
- Dahomey.Cbor (>= 1.26.0)
- Dahomey.Json (>= 1.12.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Logging (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- System.Formats.Asn1 (>= 10.0.1)
- System.Security.Cryptography.Pkcs (>= 10.0.1)
- System.ServiceModel.Http (>= 8.1.2)
-
net10.0
- AsNet.Shared (>= 3.2.0)
- Dahomey.Cbor (>= 1.26.0)
- Dahomey.Json (>= 1.12.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Logging (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- System.Security.Cryptography.Pkcs (>= 10.0.1)
- System.ServiceModel.Http (>= 10.0.652802)
-
net8.0
- AsNet.Shared (>= 3.2.0)
- Dahomey.Cbor (>= 1.26.0)
- Dahomey.Json (>= 1.12.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Logging (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- System.Formats.Asn1 (>= 10.0.1)
- System.Security.Cryptography.Pkcs (>= 10.0.1)
- System.ServiceModel.Http (>= 8.1.2)
-
net9.0
- AsNet.Shared (>= 3.2.0)
- Dahomey.Cbor (>= 1.26.0)
- Dahomey.Json (>= 1.12.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Http (>= 10.0.1)
- Microsoft.Extensions.Logging (>= 10.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.1)
- Microsoft.Extensions.Options (>= 10.0.1)
- System.Formats.Asn1 (>= 10.0.1)
- System.Security.Cryptography.Pkcs (>= 10.0.1)
- System.ServiceModel.Http (>= 8.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AsNet.Shared.Http:
| Package | Downloads |
|---|---|
|
AsNet.Shared.Data
AsNet.Shared.Data es una librería de integración con el Sistema AsNetSecurity para obtener y generar cadenas de conexión dinámicas para aplicaciones Multi-Tenant. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.2.0 | 119 | 1/13/2026 | |
| 1.1.2 | 260 | 6/30/2025 | |
| 1.1.1 | 283 | 1/6/2025 | |
| 1.1.0.5 | 244 | 12/9/2024 | |
| 1.1.0.4 | 245 | 12/9/2024 | |
| 1.1.0.3 | 257 | 11/11/2024 | |
| 1.1.0.2 | 288 | 9/6/2024 | |
| 1.1.0.1 | 240 | 6/20/2024 | |
| 1.1.0 | 256 | 6/9/2024 | |
| 1.0.7.1 | 395 | 9/29/2023 | |
| 1.0.7 | 236 | 9/28/2023 | |
| 1.0.6.10 | 242 | 9/23/2023 | |
| 1.0.6.8 | 229 | 9/23/2023 | |
| 1.0.6.7 | 206 | 9/23/2023 | |
| 1.0.6.6 | 250 | 9/2/2023 | |
| 1.0.6.5 | 318 | 6/15/2023 | |
| 1.0.6.4 | 346 | 6/12/2023 | |
| 1.0.6.3 | 475 | 3/27/2023 | |
| 1.0.6.2 | 475 | 2/16/2023 | |
| 1.0.6.1 | 550 | 1/15/2023 | |
| 1.0.6 | 522 | 1/12/2023 | |
| 1.0.5.8 | 856 | 5/11/2022 | |
| 1.0.5.7 | 852 | 5/11/2022 | |
| 1.0.5.6 | 569 | 5/10/2022 | |
| 1.0.5.5 | 857 | 5/10/2022 | |
| 1.0.5.4 | 560 | 4/26/2022 | |
| 1.0.5.2 | 548 | 4/26/2022 | |
| 1.0.5.1 | 558 | 4/24/2022 | |
| 1.0.5 | 571 | 4/24/2022 | |
| 1.0.4.1 | 537 | 9/13/2021 | |
| 1.0.4 | 455 | 8/21/2021 | |
| 1.0.3 | 520 | 6/17/2021 | |
| 1.0.2 | 507 | 6/16/2021 | |
| 1.0.1 | 481 | 6/15/2021 | |
| 1.0.0 | 470 | 5/4/2021 |
Esta versión tiene optimización y caracteristicas personalizadas en la serialización JSON utilizando la libreria nativa System.Text.Json, Dahomey.Json y mejoras en el rendimiento de cliente API.
Presenta clases DI para la utilización de los servicios WebApi.
Se ha creado la clase TimeSpanJsonConverter que permite recibir satisfactoriamente objetos con el uso de TimeSpan en sus propiedades usando System.Text.Json.
Diseñada mínimo para los Frameworks .Net .Net Standard 2.1, .Net 8.0, Net 9.0 y Net 10.0.
Se mejoran los metodos Async retornando una Tuple con el tipo T, HttpResponse y ApiException.
Se agrega metodos Get y Delete que aceptan BodyRequest.
Se agrega metodos GetByteArray.
Se incluyen los metodos GetAsyncEnumerable, PostAsyncEnumerable y GetFromJsonAsyncEnumerable
que retornan IAsyncEnumerable, logrando así un mayor
rendimiento para los procesos de consultas Stream.