Hello Lee, What you're describing sounds like the works of a reverse proxy. Take a look at: https://godoc.org/net/http/httputil#ReverseProxy
If you're interested in how it's accomplished, take a look at the source. It's pretty readable. Cheers, Christian On Thursday, December 21, 2017 at 4:51:39 AM UTC+1, Lee Rick wrote: > > hi, when http server receive a request A, create a new http request B > with A, do B, get response respB, create a new http respA with respB > how to do "create a new http request B with A" and " create a new > http respA with respB" with io.copy method, and reset url,params, hosts > etc. > any one can share your methods? > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.