Skip to content

Instantly share code, notes, and snippets.

@sanat51289
sanat51289 / EventListener.kt
Created April 12, 2022 16:05
OkHttpClient EventListener logs
object: EventListener() {
override fun cacheHit(call: Call, response: Response) {
super.cacheHit(call, response)
println("cacheHit")
}
override fun cacheMiss(call: Call) {
super.cacheMiss(call)
println("cacheMiss")
}