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

Method skipRetry

api/plugin/wrapper/retry_request.go:62–69  ·  view source on GitHub ↗

skipRetry if the request method is POST, or not one of the following http status codes: 500, 502, 503, 504.

(httpMethod string, response *http.Response)

Source from the content-addressed store, hash-verified

60// skipRetry if the request method is POST, or not one of the following http
61// status codes: 500, 502, 503, 504.
62func (*RetryRequest) skipRetry(httpMethod string, response *http.Response) bool {
63 return httpMethod == http.MethodPost ||
64 response != nil &&
65 response.StatusCode != http.StatusInternalServerError &&
66 response.StatusCode != http.StatusBadGateway &&
67 response.StatusCode != http.StatusServiceUnavailable &&
68 response.StatusCode != http.StatusGatewayTimeout
69}

Callers 1

MakeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected