Yes, treating it like a MBR would work. However, there needs to be a way as you mention to make it go async. I'm more trying to see if this is already supported somehow.
There's a few ways I could see executor working: - when building the proxy, include an executor() method (I think this is already inherited from JAX-RS 2.1) - use a property() call (already supported it seems in the core client) - one of the method arguments on the proxy John On Sun, Feb 4, 2018 at 3:12 PM Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > Why not using the response type? It is not hard to detect it is a > CompletionStage and therefore call rx(). > > Side note: if there is an Executor param it should be forwarded/configured > IMHO. > > Le 4 févr. 2018 20:49, "John D. Ament" <john.d.am...@gmail.com> a écrit : > > > So far, it looks like proxy clients don't support rx() invocations. I do > > see rx() methods within WebClient that would allow its use, but I don't > see > > a straight forward way that those methods could be invoked within a > proxy. > > It could be that a custom annotation is used, indicating the response > > should be from an rx() invocation. > > > > John > > >