goproxy
goproxy copied to clipboard
Can I proxy request to another host?
Can I proxy request to another host? If URL match some rules, just access host2.com and return the response of host2.com when user is accessing host1.com.
Yes, I think you can just modify req.Host
in your handler.
add handler. and return a new Response