MCPcopy Create free account
hub / github.com/auth0/auth0-cli / customClientWithRetries

Function customClientWithRetries

internal/cli/management.go:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func customClientWithRetries() *http.Client {
51 client := &http.Client{
52 Transport: rateLimitTransport(
53 retryableErrorTransport(
54 http.DefaultTransport,
55 ),
56 ),
57 }
58
59 return client
60}
61
62func rateLimitTransport(tripper http.RoundTripper) http.RoundTripper {
63 return rehttp.NewTransport(tripper, rateLimitRetry, rateLimitDelay)

Callers 3

Calls 2

rateLimitTransportFunction · 0.85
retryableErrorTransportFunction · 0.85

Tested by 1