title: How to read the response from a NewSingleHostReverseProxy
body: <p>I've created a <a href="http://golang.org/pkg/net/http/httputil/#NewSingleHostReverseProxy" rel="noreferrer">reverse proxy</a> like this:</p>
  
  <pre><code>func ProxyFunc(w http.ResponseWriter, r *http.Request) {
      u, err := url.Parse("http://mynetworkserverhere:8957/some/path/here/")
      if err == nil {
          proxy := httputil.NewSingleHostReverseProxy(u)
          proxy.ServeHTTP(w, r)
          //????
  
      } else {
          w.Write([]byte(err.Error()))
      }
  }
  </code></pre>
  
  <p>And invoke it from main:</p>
  
  <pre><code>func main() {
     log.Printf("Starting...")
     http.HandleFunc("/", ProxyFunc)
     log.Fatal(http.ListenAndServe(":6060", nil))
  }
  </code></pre>
  
  <p>And it works as expected from the client side, but I'd like to read the response from the proxy, how can I do that?</p>