Empty response header

Report a typo

The code below makes a request to the server and receives a Location response header.

import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.request.*
import io.ktor.client.statement.*

suspend fun main(args: Array<String>) {
    val client = HttpClient(CIO)
    val response: HttpResponse = client.get("https://hyperskill.org")

    println(response.headers["Location"])
    
    client.close()
}

What value will the code print if the response does not contain a Location header?

Select one option from the list
___

Create a free account to access the full topic