Jose Garcia
10/20/2022, 12:39 PMHttpRequestRetry
? I want to retryOnExceptionIf
cause is ServerResponseException
. Using MockEngine.requestHistory
does not seem to account each time a retry request occurs so I was wondering if someone could have a clever idea on how to test this logic.Aleksei Tirman [JB]
10/21/2022, 5:41 AMHttpSend
plugin to observe the actual sending attempts. Here is an example:
val requests = mutableListOf<HttpRequestBuilder>()
client.plugin(HttpSend).intercept { req ->
requests.add(req)
execute(builder)
}
Jose Garcia
11/07/2022, 12:09 PM