(p *reverseProxy, req *http.Request)
| 1154 | } |
| 1155 | |
| 1156 | func makeCustomRequest(p *reverseProxy, req *http.Request) *http.Response { |
| 1157 | atomic.AddUint64(&totalNbOfRequests, 1) |
| 1158 | rw := httptest.NewRecorder() |
| 1159 | cn := &testCloseNotifier{rw} |
| 1160 | p.ServeHTTP(cn, req) |
| 1161 | return rw.Result() |
| 1162 | } |
| 1163 | |
| 1164 | func getProxy(c *config.Config) (*reverseProxy, error) { |
| 1165 | addr, err := url.Parse(fakeServer.URL) |
no test coverage detected