MCPcopy Create free account
hub / github.com/imroc/req / getRetryOption

Method getRetryOption

request.go:1158–1163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1156}
1157
1158func (r *Request) getRetryOption() *retryOption {
1159 if r.retryOption == nil {
1160 r.retryOption = newDefaultRetryOption()
1161 }
1162 return r.retryOption
1163}
1164
1165// SetRetryCount enables retry and set the maximum retry count.
1166// It will retry infinitely if count is negative.

Callers 8

SetRetryCountMethod · 0.95
SetRetryIntervalMethod · 0.95
SetRetryFixedIntervalMethod · 0.95
SetRetryHookMethod · 0.95
AddRetryHookMethod · 0.95
SetRetryConditionMethod · 0.95
AddRetryConditionMethod · 0.95

Calls 1

newDefaultRetryOptionFunction · 0.85

Tested by

no test coverage detected