suspend fun main () = coroutineScope {
var counter = 1
val client = HttpClient{}
val response = client.get<HttpResponse>("<https://httpbin.org/get>")
println(response.status)
}
If I defined the HttpClient like that code, is it mean I use CIO engine ?
✔️ 1
e
e5l
06/26/2019, 12:50 PM
Hi @davidasync, no. It means that you’re using the engine mentioned in the
dependencies
block of your build configuration.
d
davidasync
06/26/2019, 1:07 PM
What if I defined more than 1 engine at build.gradle? for example