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

Struct RetryRequest

api/plugin/wrapper/retry_request.go:13–16  ·  view source on GitHub ↗

RetryRequest is a wrapper that retries failed requests if they contain a 5XX status code.

Source from the content-addressed store, hash-verified

11// RetryRequest is a wrapper that retries failed requests if they contain a 5XX
12// status code.
13type RetryRequest struct {
14 maxRetries int
15 connection plugin.Connection
16}
17
18// NewRetryRequest returns a pointer to a RetryRequest wrapper.
19func NewRetryRequest(maxRetries int) *RetryRequest {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected