https://kotlinlang.org logo
#ktor
Title
# ktor
c

Cláudio Bartolomeu

05/10/2019, 8:58 PM
Hi, I am developing a client feature which retries the request in some cases. Which pipeline and phase best fit for an interceptor like this? For instance in the case of connection refused exception where should I handle it?
👍 1
e

e5l

05/13/2019, 6:47 AM
Hi @Cláudio Bartolomeu, consider intercepting
HttpSend
feature.
f

Felix

05/18/2019, 5:22 PM
I've tried that suggestion, however the
HttpSend
feature only runs the interceptors after having a successful response from the
DefaultSender
. If the first
sender.execute
throws, the
HttpSend
interceptor terminates immediately.
t

Thomas

02/18/2020, 8:01 PM
@Felix did you find out a solution?
2 Views