public ApiClient setHttpClient ( OkHttpClient newHttpClient ) { if ( ! httpClient . equals ( newHttpClient ) ) { newHttpClient . networkInterceptors ( ) . addAll ( httpClient . networkInterceptors ( ) ) ; httpClient . networkInterceptors ( ) . clear ( ) ; newHttpClient . interceptors ( ) . addAll ( httpClient . interceptors ( ) ) ; httpClient . interceptors ( ) . clear ( ) ; this . httpClient = newHttpClient ; } return this ; }
Set HTTP client