Hi, does the Ktor client have a built-in way of au...
# ktor
m
Hi, does the Ktor client have a built-in way of automatically delaying/pausing then retrying when it receives a 429 response? Is there a plugin that could do that for me?
j
Ktor 2.0 has I believe a new
HttpRequestRetry
feature....not sure though how much it's behaviour can be customized
a
You can find more information about this plugin in the documentation.
👍 1
m
Thanks. I'm specifically looking for something I could use in production (so excluding 2.0 stuff for now), and I don't think HttpRequestRetry is able to use the response from 429 to adapt its wait time, can it?
a
@Rustam Siniukov
r
HttpRequestRetry
will support
Retry-After
header by default