The goal is to implement a proxy server for HTTP and HTTPS. Handling of HTTP is a matter of parsing request, passing such request to destination server, reading response and passing it back to the client. All we need for that is built-in HTTP server and client (net/http). HTTPS is different as it’ll use technique called HTTP CONNECT tunneling. First client sends request using HTTP CONNECT method t
![HTTP(S) Proxy in Golang in less than 100 lines of code](https://cdn-ak-scissors.b.st-hatena.com/image/square/d4fc9c7d6a36ce39d54a545a1d9d5634bc700d75/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2A9FR0CCERIPLgv5SDAFlpOQ.jpeg)