kotlin-client.libraries.jvm-volley.auth.httpbasicauth.mustache Maven / Gradle / Ivy
val basicAuthHeaderFactoryBuilder = { username: String?, password: String? ->
{ mapOf("Authorization" to "Basic " + Base64.encodeToString("${username ?: ""}:${password ?: ""}".toByteArray(), Base64.DEFAULT))}
}