Http Client
The main functionality is available through the artifact.And each engine, is provided in .
You can check ,and how to receive responses in their respective sections.
Parallel requests
suspend fun parallelRequests() = coroutineScope<Unit> {
val client = HttpClient()
// Start two requests asynchronously.
val firstRequest = async { client.get<ByteArray>("https://127.0.0.1:8080/a") }
// requests are done.
val bytes1 = firstRequest.await() // Suspension point.
val bytes2 = secondRequest.await() // Suspension point.
For more information, check the with some examples.