<https://api.ktor.io/ktor-client/ktor-client-core/...
# ktor
r
a
You can use the
retryIf
method to set a condition that determines whether a request should be retried. Here is an example:
Copy code
val client = HttpClient {
    install(HttpRequestRetry) {
        retryIf(maxRetries = 10) { request, response ->
            request.url.host == "<http://example.com|example.com>"
        }
    }
}
r
Huh, that sounds like non-local code, so I'll stick to using two different clients 🤔