Hello Oleg,
Thanks for your help and proposal!
This can be done by replacing the terminal (main) filter in the request
execution chain
```
.replaceFilter(StandardFilter.MAIN_HANDLER.name(), new
TerminalAsyncServerFilter(new DefaultAsyncResponseExchangeHandlerFactory(
new HttpRequestMapper<Supplier<AsyncServerExchangeHandler>>() {
@Override
public Supplier<AsyncServerExchangeHandler>
resolve(HttpRequest request, HttpContext context) throws HttpException {
// Do custom request mapping
return null;
}
})))
```
I slightly modified the idea an put a proxy-filter before the default
main-filter.
In case of a proxy request, it's "handled" there, otherwise the chain is
"proceeded". The hard thing is to distinguish between virtual hostnames
and proxy request. I didn't really solve that right now, I just use
"uri.getScheme() != null".
best regards
Achim Kraus
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]