Open fallenleavesguy opened 2 years ago
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.
req.Host
add handler. and return a new Response
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.