ktor-client-auth-basic / io.ktor.client.features.auth.basic / BasicAuth / Feature

Feature

companion object Feature : HttpClientFeature<Configuration, BasicAuth>
Deprecated: [BasicAuth] deprecated, use [Auth] feature with [Basic] provider instead.

Companion Object Properties

key

val key: AttributeKey<BasicAuth>

Companion Object Functions

constructBasicAuthValue

fun constructBasicAuthValue(username: String, password: String): String

Create basic auth header value from username and password.

install

fun install(feature: BasicAuth, scope: HttpClient): Unit

prepare

fun prepare(block: Configuration.() -> Unit): BasicAuth