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.
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.
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