[TOC] ## NewSingleHostReverseProxy 代理转发 ``` http.HandleFunc("/test", func(w http.ResponseWriter, r *http.Request) { proxy, e := url.Parse("http://127.0.0.1:9092") if e != nil { panic(e) } reverseProxy := httputil.NewSingleHostReverseProxy(proxy) reverseProxy.ServeHTTP(w, r) }) ```