Computer scienceBackendKtorKtor Client

Ktor Client: First view

Theory

GET request

Report a typo

The code below makes an HTTP request to google.com and outputs the response code to the console.

Put the lines of code in the correct order and set the indentation.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                val client = HttpClient(CIO)
              
                println(response.status)
              
                }
              
                client.close()
              
                val response: HttpResponse = client.get("https://google.com")
              
                suspend fun main(args: Array<String>) {
              

Create a free account to access the full topic