WithMaxRetries returns a RequestOption that sets the maximum number of retries that the client.
func WithMaxRetries(retries int) RequestOptionWithMaxRetries returns a RequestOption that sets the maximum number of retries that the client attempts to make. When given 0, the client only makes one request. By default, the client retries two times.
WithMaxRetries panics when retries is negative.
| Name | Type | Description |
|---|---|---|
retries* | int |