REST Client with a dynamic base URI, but configurable parameters #44972
jeremy-nocek-rp
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quarkus offers
QuarkusRestClientBuilder
to initialize a REST client with a dynamic URI. However, as far as I can tell, that client won't read any additional configurable params (timeouts, TSL config, etc...) from the config sources as it would if it were initialized via CDI.To get past this, I've implemented a rest client builder which utilizes
RestClientCDIDelegateBuilder.createDelegate()
to initialize my dynamic base uri clients, but it breaks with every Quarkus update and is becoming a pain to maintain.I'm curious if there is a known other approach to accomplish what I'm going for here, or if I'm mistaken. If not, I'll file an issue requesting this feature.
Beta Was this translation helpful? Give feedback.
All reactions