-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support registering a ClientHeadersFactory in the rest client programmatic API #32189
Comments
You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip
|
/cc @Sgitario (rest-client), @cescoffier (rest-client), @geoand (rest-client) |
Thanks for reporting! |
@radcortez this sounds like something that should be taken up with the spec, right? |
Yes, but this was requested a long time ago without considerable progress: Maybe we need to consider providing our own enhanced ClientBuilder API. |
+1 |
+1 for external classes. In my case I have OpenAPI codegen classes and it's just a restClient but I cannot enable injection by adding annotations to it. For now I define a Quarkus client which extends the generated class, as here. A workaround, even I cannot use |
I've created this issue #32856 for this. |
#32880 should take care of this feature request. |
Description
It would be useful to be able to register client headers factories through the programmatic API. Example :
Using a programmatic rest client is one solution when using a rest interface coming from a jar external to the application (most likely coming from non quarkus applications). In that case it is not possible to add additional quarkus annotations, such as
@RegisterRestClient
or@RegisterClientHeaders
.See this zulip chat
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: