Hello,
I am working with a rather unstable API. Sometimes, I'm getting an error 404 or 403 without a reason, but simply retrying the request the second time works and I'm receiving proper data from API.
I would like to implement a feature, where if my THttpCli gets in header one of these codes, I will retry the request. But I am unsure on how to retry the request from, for example, OnHeaderEnd.
What code should I implement in this procedure to retry the request? Sending a simple GetAsync again doesn't seem to work.
Thank you,
Piotr