I have setup ktor with json serialization and it w...
# ktor
r
I have setup ktor with json serialization and it works well. I can issue a request like this:
Copy code
val customer: Customer = client.get("<http://127.0.0.1:8080/customer>")
My question is how can I then get the response headers?
r
Copy code
val response = client.get<HttpResponse>(url)
val body = response.receive<Customer>()
val header = response.headers[...]
👍 1