OkHttpClient eagerClient = client.newBuilder() .readTimeout(500, TimeUnit.MILLISECONDS) .build(); Response response = eagerClient.newCall(request).execute();
References
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/
OkHttpClient eagerClient = client.newBuilder() .readTimeout(500, TimeUnit.MILLISECONDS) .build(); Response response = eagerClient.newCall(request).execute();
References
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/