MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NewRetryRequest

Function NewRetryRequest

api/cloudcontroller/wrapper/retry_request.go:18–22  ·  view source on GitHub ↗

NewRetryRequest returns a pointer to a RetryRequest wrapper.

(maxRetries int)

Source from the content-addressed store, hash-verified

16
17// NewRetryRequest returns a pointer to a RetryRequest wrapper.
18func 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.
25func (retry *RetryRequest) Make(request *cloudcontroller.Request, passedResponse *cloudcontroller.Response) error {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected