Hello sorry for noob question ``` suspend fun main...
# ktor
d
Hello sorry for noob question
Copy code
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
Hi @davidasync, no. It means that you’re using the engine mentioned in the
dependencies
block of your build configuration.
d
What if I defined more than 1 engine at build.gradle? for example
Copy code
compile "io.ktor:ktor-client-core:latest.release"
    compile "io.ktor:ktor-client-apache:latest.release"
    compile "io.ktor:ktor-client-jetty:latest.release"
    compile "io.ktor:ktor-client-okhttp:latest.release"
    compile "io.ktor:ktor-client-cio:latest.release"
e
It selects the first one in alphabetical order.
d
Ahh I see, Thanks for the explanation