Filip Friskan
Filip Friskan
Thank you for your response @ctlove0523! But that was not my question. What I am trying to set dynamically is CALL timeout ( https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/-builder/call-timeout/ ).
Interesting solution @leobert-lan , but I would not prefer to change the timeout object via reflection. I think this should be properly implemented in OkHttp to have a standard way...
I have researched the latest release notes and documentation of OkHttp ( https://square.github.io/okhttp/4.x/okhttp/okhttp3/-interceptor/-chain/ ) and I did not find a way to set CALL timeout via interceptor inside a chain...