Tiago Nunes
09/29/2021, 10:57 AMAutoRefreshToken
interceptor plugin in my Ktor client (HttpClient
), which is supposed to see if the response is a token time-out error, and if it is, generate a new token and resend the request.
For getting the response, should I intercept the receivePipeline
or the responsePipeline
?Rustam Siniukov
09/29/2021, 11:17 AMreceivePipeline
. responsePipeline
is for downloading a bodyTiago Nunes
09/29/2021, 11:19 AM