provideOkHttpClient

@Provides
@Singleton
fun provideOkHttpClient(httpLoggingInterceptor: HttpLoggingInterceptor, basicAuthCredentials: BasicAuthCredentials, accessTokenCredentials: AccessTokenCredentials, baseUrl: String): OkHttpClient

Provides an instance of OkHttpClient.

Return

A configured instance of OkHttpClient.

Parameters

httpLoggingInterceptor

The logging interceptor for HTTP requests.

basicAuthCredentials

The basic authentication credentials.

accessTokenCredentials

The access token credentials.

baseUrl

The base URL for the API.