Reverse HTTP Proxy written in Go
I've written this (very limited) reverse HTTP proxy as an excercise and reference for future products.
Update: It appears that stdlib reversproxy allows request and response modification, but not different response based on request.
make
./reverseproxy -upstream ip.here
Usage of ./reverseproxy:
-bind string
Bind addr, e.g. 0.0.0.0:8000 (default "0.0.0.0:8000")
-upstream string
HTTP upstream, e.g. 192.168.3.1:81 or just 192.168.3.1
Standard library (better) implementation exists: https://godoc.org/net/http/httputil#ReverseProxy