com.burgstaller.okhttp.CachingUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okhttp-digest Show documentation
Show all versions of okhttp-digest Show documentation
OkHttp Digest Authentication
package com.burgstaller.okhttp
import okhttp3.HttpUrl
object CachingUtils {
/**
* Get key to be used for storing cached auth responses, e.g.
* http:myhost.com:8080
*/
fun defaultCacheKey(url: HttpUrl): String {
return "${url.scheme()}:${url.host()}:${url.port()}"
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy