Auth
class Auth
Client authentication feature. providers - list of auth providers to use.
Types
companion object Feature : HttpClientFeature<Auth, Auth> |
Constructors
Auth(providers: MutableList<AuthProvider> = mutableListOf()) Client authentication feature. providers - list of auth providers to use. |
Properties
val providers: MutableList<AuthProvider> |
Companion Object Properties
val key: AttributeKey<Auth> The AttributeKey for this feature. |
Companion Object Functions
fun install(feature: Auth, scope: HttpClient): Unit Installs the feature class for a HttpClient defined at scope. |
|
Builds a TFeature by calling the block with a TConfig config instance as receiver. |
Extension Functions
fun Auth.basic(block: BasicAuthConfig.() -> Unit): Unit Add BasicAuthProvider to client Auth providers. |
|
fun Auth.digest(block: DigestAuthConfig.() -> Unit): Unit Install client DigestAuthProvider. |