For the ktor http client, if it follows redirects....
# ktor
y
For the ktor http client, if it follows redirects. Is there a way to know the final URL?
e.g. if the redirect is from /about to /about/ the base href changes.
e
Hi @yschimke, you could know the final url from a
request.url
in a response call.
y
Yep, that works. Thanks.
Copy code
this.get<HttpResponse>(url.toString()).use {
    println("$url ${it.call.request.url}")
👍 1