@Test public void should_have_default_settings() throws Exception { HttpClient underTest = newClient(); OkHttpClient okClient = underTest.getUnderlying(); assertThat(okClient.connectTimeoutMillis()).isEqualTo(30_000); assertThat(okClient.readTimeoutMillis()).isEqualTo(300_000); assertThat(okClient.writeTimeoutMillis()).isEqualTo(300_000); assertThat(okClient.followRedirects()).isTrue(); assertThat(okClient.followSslRedirects()).isTrue(); assertThat(okClient.retryOnConnectionFailure()).isTrue(); }
OkHttpClient getUnderlying() { return okClient; }
HttpClient { OkHttpClient getUnderlying() { return okClient; } }
HttpClient { OkHttpClient getUnderlying() { return okClient; } private  HttpClient(OkHttpClient okClient); }
HttpClient { OkHttpClient getUnderlying() { return okClient; } private  HttpClient(OkHttpClient okClient); HttpCall newCall(HttpUrl url); }
HttpClient { OkHttpClient getUnderlying() { return okClient; } private  HttpClient(OkHttpClient okClient); HttpCall newCall(HttpUrl url);  }