2020年4月19日

proxy handle

摘要: func proxyHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { u, _ := url.Parse("http://127.0.0.1:9000/") proxy := httputil.NewSin 阅读全文

posted @ 2020-04-19 15:31 thotf 阅读(102) 评论(0) 推荐(0)

api透传模块

摘要: func request(b *ApiBody, w http.ResponseWriter, r *http.Request) { var resp *http.Response var err error switch b.Method { case http.MethodGet: req, _ 阅读全文

posted @ 2020-04-19 15:30 thotf 阅读(252) 评论(0) 推荐(0)

导航