The code below makes a request to gooogle.com (having previously disabled redirect-following mode) and gets the response headers.
Put the lines of code in the correct order and set the indentation.
The code below makes a request to gooogle.com (having previously disabled redirect-following mode) and gets the response headers.
Put the lines of code in the correct order and set the indentation.
}
println(response.headers)
followRedirects = false
val client = HttpClient(CIO) {
client.close()
val response: HttpResponse = client.get("http://gooogle.com")
}
suspend fun main(args: Array<String>) {
Create a free account to access the full topic