Skip to content
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

Configure the sdk Http Client #205

Open
r00ta opened this issue Feb 17, 2022 · 1 comment
Open

Configure the sdk Http Client #205

r00ta opened this issue Feb 17, 2022 · 1 comment

Comments

@r00ta
Copy link

r00ta commented Feb 17, 2022

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

@wtrocki
Copy link
Collaborator

wtrocki commented Feb 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants