❓ How to change already existed OkHttp Client instance for other purposes?
✅ You can customize a shared OkHttpClient instance with newBuilder()
.
This builds a client that shares the same connection pool, thread pools, and configuration. Use the builder methods to configure the derived client for a specific purpose.
👀 Sample:
OkHttpClient eagerClient = client.newBuilder()
.readTimeout(500, TimeUnit.MILLISECONDS)