<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>MicroProfile Rest Client 1.2 requires that the method that is handling the request is available under a specific key in the ClientRequestContext [1].</div><div><br></div><div>I&#39;ve been struggling to find an elegant way of implementing it in SmallRye. Currently, I have it working with a filter and digging out the ClientInvocation from ClientRequestContextImpl [2] but would rather not use reflection for that.</div><div><br></div><div>Could you give me some tip how to implement it better, if possible?</div><div><br></div><div>Thanks,</div><div>Michał</div><div><br></div><div>[1] <a href="https://github.com/eclipse/microprofile-rest-client/blob/857ce67949a1e84600e5ffa2dfc80571465aa31a/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/providers/InvokedMethodRequestFilter.java#L36">https://github.com/eclipse/microprofile-rest-client/blob/857ce67949a1e84600e5ffa2dfc80571465aa31a/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/providers/InvokedMethodRequestFilter.java#L36</a></div><div><br></div><div>[2] <a href="https://github.com/michalszynkiewicz/smallrye-rest-client/blob/99e05e97932e5b53bb4161594950c3ef7dba9a2d/implementation/src/main/java/io/smallrye/restclient/MethodInjectionFilter.java#L34-L49">https://github.com/michalszynkiewicz/smallrye-rest-client/blob/99e05e97932e5b53bb4161594950c3ef7dba9a2d/implementation/src/main/java/io/smallrye/restclient/MethodInjectionFilter.java#L34-L49</a><br></div></div></div></div>