Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Core
  3. AspNetCore.Proxy

AspNetCore.Proxy

MITC#v4.5.0

A lightweight library for creating HTTP and WebSocket proxies in ASP.NET Core applications with minimal configuration.

GitHubGitHub
549 stars79 forks0 contributors

What is AspNetCore.Proxy?

AspNetCore.Proxy is a library for ASP.NET Core that enables developers to easily create HTTP and WebSocket proxies within their applications. It solves the problem of forwarding client requests to external servers, such as APIs or services, without requiring complex manual HTTP client management. The library provides a streamlined API for setting up proxies globally, per-route, or in existing controllers.

Target Audience

ASP.NET Core developers building applications that need to forward requests to external APIs, implement reverse proxies, create API gateways, or handle WebSocket proxying.

Value Proposition

Developers choose AspNetCore.Proxy because it reduces boilerplate code for proxying, offers a fluent and intuitive API, and provides extensive customization options like interceptors and failure handling. It integrates seamlessly with ASP.NET Core's middleware and routing systems.

Overview

ASP.NET Core Proxies made easy.

Use Cases

Best For

  • Creating reverse proxies for internal microservices
  • Building API gateways that aggregate multiple backend services
  • Forwarding WebSocket connections to external servers
  • Implementing catch-all proxies for unmatched routes
  • Adding request/response interception and modification in proxy flows
  • Setting up development proxies to bypass CORS restrictions

Not Ideal For

  • Applications requiring built-in load balancing or circuit breaker patterns
  • Projects that need to proxy gRPC or other non-HTTP/WebSocket protocols
  • High-throughput scenarios where minimal proxy overhead is critical
  • Teams needing a fully managed, production-ready API gateway out of the box

Pros & Cons

Pros

HTTP and WebSocket Support

Supports both HTTP/HTTPS and WebSocket connections with dedicated methods like UseHttp and UseWs, making it versatile for API gateways and real-time communication.

Dynamic Endpoint Routing

Allows endpoints to be computed at runtime based on request context or route parameters, enabling conditional forwarding as shown in examples with if statements.

Extensive Customization Hooks

Provides interceptors for requests and responses, custom header modification, and failure handling via options builders, offering fine-grained control over proxy behavior.

Seamless Middleware Integration

Integrates directly into ASP.NET Core's middleware pipeline and endpoint routing, allowing setup in Configure methods or existing controllers with minimal boilerplate.

Cons

Body Consumption Limitation

The README explicitly warns that controllers cannot consume request bodies (e.g., with [FromBody] parameters) when proxying, which restricts certain use cases and requires workarounds.

No Built-in Resilience Features

Lacks out-of-the-box support for load balancing, retries, or circuit breakers, forcing developers to implement these manually for production-ready proxies.

WebSocket Buffer Management

Requires manual configuration of buffer sizes and data interception for WebSocket connections, which can add complexity and potential performance overhead in high-traffic scenarios.

Frequently Asked Questions

Quick Stats

Stars549
Forks79
Contributors0
Open Issues25
Last commit1 year ago
CreatedSince 2017

Tags

#http-proxy#api-gateway#reverse-proxy#proxy#csharp#dotnet#aspnet-core#microservices#aspnetcore#middleware

Built With

.
.NET Standard 2.0
.
.NET Core 3.0

Included in

Core21.2k
Auto-fetched 1 day ago

Related Projects

SharpPcapSharpPcap

Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets

Stars1,474
Forks274
Last commit8 days ago
NetworkerNetworker

A simple to use TCP and UDP networking library for .NET. Compatible with Unity.

Stars482
Forks75
Last commit6 years ago
CurlThinCurlThin

Lightweight cURL wrapper for C# with support for curl_multi polling interface through libuv

Stars71
Forks22
Last commit2 years ago
NETStandard.HttpListenerNETStandard.HttpListener

HttpListener for .NET Core (NETStandard 1.3) and Universal Windows Platform (UWP)

Stars40
Forks6
Last commit8 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub