How aiwip/super-proxy works
Super Proxy accepts client connections, reads its YAML rules, selects a destination and forwarding method, then relays traffic to an upstream server. Its documented capabilities include transparent forwarding for HTTP, HTTPS, and other TCP traffic, plus plain-HTTP rewriting with TLS termination for CONNECT requests. The graph separates startup and connection handling, rule-based routing, and traffic methods. Relationships are limited to calls and data transfers shown in the excerpts or documented in the README.
Main entry points: main.go Connection Handler · route.go Route Executor · methods.go Plain Rewriter · config.go Rule Matcher
Components 12
Proxy Runtime
- Startup Setup
src/main.go - TCP Listener
src/main.go - Connection Handler
src/main.go
Rule Routing
- Rule Matcher
src/config.go - Route Executor
src/route.go
Traffic Methods
- Transparent Forwarder
src/methods.go - Plain Rewriter
src/methods.go
Other components
- Proxy Operator
- Proxy Client
- YAML Config
- TLS Credentials
- Upstream Server
Connections 14
- Proxy Operator → Startup Setup: configures
README.md - YAML Config → Startup Setup: loads YAML
src/main.go - TLS Credentials → Startup Setup: provides paths
src/main.go - Startup Setup → TCP Listener: starts
src/main.go - Proxy Client → TCP Listener: connects
README.md - TCP Listener → Connection Handler: dispatches
src/main.go - Connection Handler → Rule Matcher: selects route
src/main.go - Connection Handler → Upstream Server: dials destination
src/main.go - Connection Handler → Route Executor: runs method
src/main.go - Route Executor → Transparent Forwarder: invokes method
src/route.go - Route Executor → Plain Rewriter: invokes method
src/route.go - Transparent Forwarder → Upstream Server: copies traffic
src/methods.go - Plain Rewriter → TLS Credentials: loads keypair
src/methods.go - Plain Rewriter → Upstream Server: rewrites and relays
src/methods.go