(rt http.RoundTripper)
| 1495 | } |
| 1496 | |
| 1497 | func 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 | } |
no outgoing calls
no test coverage detected