Open zenios opened 2 years ago
This is really a good question. I think setting the origin selector to return request options can solve the problem.
originSelector(Function<HttpServerRequest, Future<RequestOptions>> selector)
I think we could resolve the origin server before the interceptors kick-in and then it would be exposed in the ProxyContext and can be overriden, or something like that .
sometimes the ProxyContext is not available for a resolution, e.g in the WebSocket case, so we need to come with an interface that provides similar info for this case
Sometimes we might want to assign a variable inside an interceptor that will help the origin selector to decide the actual origin. What is the optimal way to do these as of now. I searched and could not find anything