I'm trying to figure out how to set HTTP headers similar to what was explained here:
- How to set HTTP header in RESTEasy client framework?, or here
- RESTEasy client framework authentication credentials
However, I want to use RESTeasy 3.0 functionality (ResteasyClientBuilder and ResteasyWebtarget) and not the deprecated ProxyFactory, as explained here:
And just to clarify, I also do not want to set the header(s) on every request / don't want them to be passed to the client, I'd like them to be set on ResteasyClientBuilder/ResteasyWebtarget level if possible.