redhat-developer/app-services-sdk-java

Configure the sdk Http Client

Opened this issue · 1 comments

r00ta commented

Hi,

I investigated a bit but I could not find any way to set the timeout for the http calls in the sdk. Would it be possible to introduce it? In general I'm not sure it is possible to configure the HTTP client: another example is the setup of a proxy.

Thank you,

Jacopo

You can use https://github.com/redhat-developer/app-services-sdk-java/blob/kafka-admin/packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/ApiClient.java#L100-L103

This is resteasy client that you can build yourself with all required parameters or get http client and setup whatever is needed like timeout for specific requests. Pre/post methods etc.