-
Notifications
You must be signed in to change notification settings - Fork 72
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
Feature: build method to pass request header in the RestClientBuilder #283
Comments
Hi @akoserwal - thanks for opening this issue. Can you provide us with a use case? There are already a few different ways to send request headers (using |
@andymc12: thanks for the suggestions. Here, I need to add a header: I think it would be more convenient to have a builder method where I can provide the header. It will save from the complication of implementing a factory for this basic purpose. |
I have tried using @ClientHeaderParam on a sample application, I don't see any header being sent. |
I also need this. The UseCase is the following. I have a mp rest client interface in a library. The user of the library sometimes needs to send header, sometimes he does not. But the user of the library should not add a new interface which extends the interface from the library and adds RegisterClientHeaders Annotation. Instead he uses the RestClientBuilder and adds the header he needs programmatically. This is not possible right now. |
It would be good to have a builder method to set request header in RestClientBuilder
The text was updated successfully, but these errors were encountered: