Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

okhttpconfig

@Configuration
class OkHttpConfig {

    @Bean
    fun okHttpClient(): OkHttpClient {
        return OkHttpClient.Builder()
                .readTimeout(60, TimeUnit.SECONDS)
                .writeTimeout(60, TimeUnit.SECONDS)
                .addInterceptor(HttpLoggingInterceptor())
                .build()
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: java class extension 
Java :: How to Access Elements of an Array in Java? 
Java :: how to open a folder in java swing project 
Java :: java += 
Java :: java declared fields vs fields 
Java :: clear datepicker javafx 
Java :: using new to create arrays 
Java :: Run the ls command in the terminal to see the uncompiled .java file 
Java :: model mapper with Page 
Java :: Janaaa_Sa 
Java :: clear method does not work selenium java 
Java :: JAVA XML COURSE 
Java :: java assertions 
Java :: vibration android studio 
Java :: how to change text of textview in slide menu bar header android 
Java :: android studio null 
Java :: activity show 1 time in android studio java 2022 
Java :: convert object address to string in java 
Java :: thread Exemple 
Java :: short array in java 
Java :: illegal expression 
Java :: java swing place objects vertically 
Java :: amstrong 
Java :: convert kotlin to java online 
Java :: varargs java 
Java :: how to set current item for spinner android 
Java :: how to call a void method from another class in java 
Java :: types of classes in java 
Java :: remove java ubuntu 20.04 
Java :: java random value threadlocalrandom 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =