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