okhttpconfig

Solutions on MaxInterview for okhttpconfig by the best coders in the world

showing results for - "okhttpconfig"
Elizabeth
25 Sep 2016
1@Configuration
2class OkHttpConfig {
3
4    @Bean
5    fun okHttpClient(): OkHttpClient {
6        return OkHttpClient.Builder()
7                .readTimeout(60, TimeUnit.SECONDS)
8                .writeTimeout(60, TimeUnit.SECONDS)
9                .addInterceptor(HttpLoggingInterceptor())
10                .build()
11    }
12}
similar questions
queries leading to this page
okhttpconfig