MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / makeCustomRequest

Function makeCustomRequest

proxy_test.go:1156–1162  ·  view source on GitHub ↗
(p *reverseProxy, req *http.Request)

Source from the content-addressed store, hash-verified

1154}
1155
1156func 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
1164func getProxy(c *config.Config) (*reverseProxy, error) {
1165 addr, err := url.Parse(fakeServer.URL)

Callers 4

makeHeavyRequestFunction · 0.85

Calls 1

ServeHTTPMethod · 0.80

Tested by

no test coverage detected