mirror of
https://github.com/owenlejeune/TVTime.git
synced 2025-11-18 09:40:53 -05:00
14 lines
413 B
Kotlin
14 lines
413 B
Kotlin
package com.owenlejeune.tvtime.api
|
|
|
|
import okhttp3.OkHttpClient
|
|
import okhttp3.logging.HttpLoggingInterceptor
|
|
|
|
class DebugHttpClient: HttpClient {
|
|
override val httpClient: OkHttpClient = OkHttpClient.Builder()
|
|
.addInterceptor(getLoggingInterceptor())
|
|
.build()
|
|
|
|
private fun getLoggingInterceptor() = HttpLoggingInterceptor().apply {
|
|
level = HttpLoggingInterceptor.Level.BODY
|
|
}
|
|
} |