MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / newRequest

Function newRequest

proxyretry_test.go:191–200  ·  view source on GitHub ↗
(host, body string)

Source from the content-addressed store, hash-verified

189}
190
191func newRequest(host, body string) *http.Request {
192 // create a new req
193 req := httptest.NewRequest(http.MethodPost, host, strings.NewReader(body))
194
195 ctx := context.Background()
196
197 req = req.WithContext(ctx)
198
199 return req
200}
201
202func newHostsCluster(hs []string) *cluster {
203 // set up cluster, replicas, hosts

Callers 3

TestQueryWithRetryFailFunction · 0.85
TestQuerySuccessOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected