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

ribesg

04/12/2019, 1:00 PM
How would I retry a request with new headers in a feature in the ktor client?
I basically want to catch the 401 status in the response, create a new request from the one which was sent but adding/settings new headers, then continue the pipeline with the response to this new request
r

ribesg

04/12/2019, 1:20 PM
Thanks for that! How experimental is this?
e

e5l

04/12/2019, 2:17 PM
Auth feature API is stable.
r

ribesg

04/12/2019, 2:18 PM
Yeah I’m obviously talking about
HttpSend
and
intercept
e

e5l

04/12/2019, 2:36 PM
Yep,
HttpSend
could change installation point, but I'm sure that we'll not change the API.
2 Views