Redirect via proxy server
vgoklani opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe.
We need to redirect traffic, but want the redirects to run via a proxy server.
Describe the solution you'd like
return response.redirect(some_url, proxy_path=...)
Additional context
All good; I <3 sanic
Could you clarify what you're actually looking to do?
This already exists within sanic: https://sanic.readthedocs.io/en/stable/sanic/api/core.html#sanic.response.redirect
Actually controlling the behavior of a proxy server is outside of scope of sanic, however you could, I suppose, write a passthrough method. Then you're proxying sanic to the proxy server to return a response which is very meta.