Feature

companion object Feature : 
    HttpClientFeature<Configuration, BasicAuth>

Companion Object Properties

key

The AttributeKey for this feature.

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

Installs the feature class for a HttpClient defined at scope.

prepare

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

Builds a TFeature by calling the block with a TConfig config instance as receiver.