gotoOla
09/18/2020, 9:37 AMHttpClient(OkHttp) {
expectSuccess = false
}.config {
// These value exists in the java builder of OkHttp but I don't know how to configure them through the engine {} or config {} ktor api
callTimeout = 0
connectTimeout = 0
readTimeout = 0
writeTimeout = 0
pingInterval = 0
}
val client = HttpClient() {
install(HttpTimeout) {
// timeout config
requestTimeoutMillis = 1000
}
}
Looking back at it it was maybe a stupid question... I was used to the apache engine where you configured it in the enginerrva
09/21/2020, 10:09 AM