Given an ASP.NET Core Web API, if I receive a request to one of the endpoints:
Q: How could I pass (resend) the same request to another external API? All the request information(headers, body, search parameters, etc) should be preserved.
Q: Is there a way to do it without having to reconstruct the entire request with HttpClient
? If no, is there a tool/library that can read the HttpContext
and reconstruct the request using HttpClient
?
I would also like to be able to do some operations in between the requests.