Hi guys, Is there a way to rerun the request when ...
# ktor
a
Hi guys, Is there a way to rerun the request when intercepting the response pipeline? I'm trying to implement a Refresh Token Feature but I can't figure a way to rerun the request with the new token.
r
Copy code
val requestBuilder = HttpRequestBuilder().takeFrom(context.request)
val result: HttpResponse = context.client!!.request(requestBuilder)
proceedWith(result)
Code snippet from the library the library -> https://github.com/icerockdev/moko-network