Writing a proxy server

In this series of posts we are going to explore writing a proxy a simple proxy server

goals

  • Resonably fast
  • Simple configuration
  • easy to deploy

components

  • Server core that listens for inbound connections on any port
  • performs path matching against configured paths for proxies
  • once matched forwards the whole request to the matched path and sends the response back

use tokio instead of writing a custom socket server