I want to 'redirect' web request to another service. I want to change nothing about them and send them to another service (I assume with something like http-clj). The result will then do the same hop.
This is required because we are replacing part of the service, but we can not have the client call service directly.
We deploy into a tomcat but generally it should work for any Ring Request.
Is there a elegant way to do this?
Thanks
The simplest way is probably just returning a 301 Moved Permanently response with the correct Location header.
If you want to actually perform the request you are basically implementing an HTTP proxy and that will probably get complex very fast, and you would be better off using a reverse proxy like Nginx like Scott said