EV.HttpClient.Proxy 2.0.0

dotnet add package EV.HttpClient.Proxy --version 2.0.0
                    
NuGet\Install-Package EV.HttpClient.Proxy -Version 2.0.0
                    
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="EV.HttpClient.Proxy" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EV.HttpClient.Proxy" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EV.HttpClient.Proxy" />
                    
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 EV.HttpClient.Proxy --version 2.0.0
                    
#r "nuget: EV.HttpClient.Proxy, 2.0.0"
                    
#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 EV.HttpClient.Proxy@2.0.0
                    
#: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=EV.HttpClient.Proxy&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=EV.HttpClient.Proxy&version=2.0.0
                    
Install as a Cake Tool

⚡ EV.HttpClient.Proxy

Biblioteca de proxy declarativo para clientes HTTP en .NET Standard 2.0+. Configura servicios externos mediante archivo JSON e inyecta clientes HTTP tipados con interceptores personalizados y proveedores de headers vía Dependency Injection.

✨ Características

  • 🎯 Configuración Declarativa - Define servicios externos en HttpClientProxy.ExternalServices.json sin código adicional.
  • 🌍 Configuración por Entornos - Soporta archivos específicos por entorno (Development, Production, etc.).
  • 🔄 Request Interceptors Personalizables - Implementa IRequestInterceptor para interceptar y modificar peticiones.
  • 📋 Headers Providers - Propaga automáticamente headers desde el contexto HTTP (Authorization, UserId, etc).
  • 🔌 100% Dependency Injection - Integración completa con IHttpClientFactory y el contenedor DI de .NET.
  • 🛠️ Extensiones Fluidas - Métodos de extensión para crear HttpRequestMessage desde endpoints configurados.
  • Async/Await - API completamente asíncrona para máximo rendimiento.
  • 🔧 Altamente Configurable - Soporta múltiples servicios, endpoints y headers personalizados.
  • 🌐 .NET Standard 2.0 - Compatible con .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+, .NET 6+, .NET 8+, Xamarin, Unity, etc.

📦 Instalación

dotnet add package EV.HttpClient.Proxy

🚀 Inicio Rápido

📌 Opción A: .NET Core / .NET 5+ / .NET 8+ (con Dependency Injection)

Para aplicaciones modernas con ASP.NET Core / .NET 8+, usa Dependency Injection con IHttpClientFactory.

📌 Opción B: .NET Framework 4.6.1+ (WebForms / MVC - sin DI)

Para aplicaciones .NET Framework legacy (WebForms, MVC 4/5), usa HttpClientManager - patrón Singleton sin Dependency Injection.

👉 Elige tu enfoque según tu proyecto:


📄 Licencia

MIT License - Copyright © 2026 Elkin Vasquez Isenia

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 was computed.  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 was computed.  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. 
.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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 43 2/28/2026

✨ Características

- 🎯 **Configuración Declarativa** - Define servicios externos en HttpClientProxy.ExternalServices.json sin código adicional.
- 🌍 **Configuración por Entornos** - Soporta archivos específicos por entorno (Development, Production, etc.).
- 🔄 **Request Interceptors Personalizables** - Implementa IRequestInterceptor para interceptar y modificar peticiones.
- 📋 **Headers Providers** - Propaga automáticamente headers desde el contexto HTTP (Authorization, X-TI, X-CI, user-id, etc).
- 🔌 **100% Dependency Injection** - Integración completa con IHttpClientFactory y el contenedor DI de .NET.
- 🛠️ **Extensiones Fluidas** - Métodos de extensión para crear HttpRequestMessage desde endpoints configurados.
- ⚡ **Async/Await** - API completamente asíncrona para máximo rendimiento.
- 🔧 **Altamente Configurable** - Soporta múltiples servicios, endpoints y headers personalizados.
- 🌐 **.NET Standard 2.0** - Compatible con .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+, .NET 6+, .NET 8+, Xamarin, Unity.

🎯 Características Avanzadas

- 📦 **HttpClientManager para .NET Framework** - Patrón Singleton para WebForms y MVC 4/5 sin Dependency Injection.
- 🔗 **Parámetros en URLs** - Soporta path parameters, query parameters y combinaciones.
- 🎨 **Múltiples Headers Providers** - DefaultHeadersProvider, SimpleHeadersProvider y providers personalizados.
- 🔍 **Trazabilidad Completa** - Headers de trazabilidad (X-TI, X-CI) para debugging y monitoreo.
- 📊 **Logging Integrado** - Logging detallado de requests y responses para debugging.
- 🌟 **Primary Constructors** - Soporte para C# 12+ primary constructors.