How would I retry a request with new headers in a ...
# ktor
r
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
Thanks for that! How experimental is this?
e
Auth feature API is stable.
r
Yeah I’m obviously talking about
HttpSend
and
intercept
e
Yep,
HttpSend
could change installation point, but I'm sure that we'll not change the API.