kotlin-client.libraries.jvm-volley.auth.httpbasicauth.mustache Maven / Gradle / Ivy
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val basicAuthHeaderFactoryBuilder = { username: String?, password: String? ->
{ mapOf("Authorization" to "Basic " + Base64.encodeToString("${username ?: ""}:${password ?: ""}".toByteArray(), Base64.DEFAULT))}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy