NewRetryRequest returns a pointer to a RetryRequest wrapper.
(maxRetries int)
| 17 | |
| 18 | // NewRetryRequest returns a pointer to a RetryRequest wrapper. |
| 19 | func NewRetryRequest(maxRetries int) *RetryRequest { |
| 20 | return &RetryRequest{ |
| 21 | maxRetries: maxRetries, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Make retries the request if it comes back with a 5XX status code. |
| 26 | func (retry *RetryRequest) Make(request *http.Request, passedResponse *uaa.Response) error { |