Does anyone know if in .NET CORE it is possible to have server middleware which would repeat the request based on the response from the original request.
Is it possible in the outgoing response to send in another request?
[Update Clarification] - The scenario is that the client makes a request, the .NET Core Web API attempts to carry out the request, an error is returned, the server middleware detects the error and send the request back in again.
I could do this in the Web API controller, but would have to repeat it in each controller method. I'm also trying to avoid having a base controller.
Thanks