MCPcopy Index your code
hub / github.com/perkeep/perkeep / httpGateSize

Function httpGateSize

pkg/client/client.go:1497–1508  ·  view source on GitHub ↗
(rt http.RoundTripper)

Source from the content-addressed store, hash-verified

1495}
1496
1497func httpGateSize(rt http.RoundTripper) int {
1498 switch v := rt.(type) {
1499 case *httputil.StatsTransport:
1500 return httpGateSize(v.Transport)
1501 case *http.Transport:
1502 return maxParallelHTTP_h1
1503 case *http2.Transport:
1504 return maxParallelHTTP_h2
1505 default:
1506 return maxParallelHTTP_h1 // conservative default
1507 }
1508}

Callers 1

setDefaultHTTPClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected