davidasync
06/26/2019, 10:45 AMsuspend 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 ?e5l
06/26/2019, 12:50 PMdependencies
block of your build configuration.davidasync
06/26/2019, 1:07 PMcompile "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"
e5l
06/26/2019, 1:08 PMdavidasync
06/26/2019, 1:13 PM