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

Function NewRetryRequest

api/uaa/wrapper/retry_request.go:19–23  ·  view source on GitHub ↗

NewRetryRequest returns a pointer to a RetryRequest wrapper.

(maxRetries int)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected