Auth

class Auth(providers: MutableList<AuthProvider>)

Client authentication feature. providers - list of auth providers to use.

Constructors

Link copied to clipboard
fun Auth(providers: MutableList<AuthProvider> = mutableListOf())

Types

Link copied to clipboard
object Feature : HttpClientFeature<Auth, Auth>

Properties

Link copied to clipboard
val providers: MutableList<AuthProvider>

Extensions

Link copied to clipboard
fun Auth.basic(block: BasicAuthConfig.() -> Unit)

Add BasicAuthProvider to client Auth providers.

Link copied to clipboard
fun Auth.bearer(block: BearerAuthConfig.() -> Unit)

Add BearerAuthProvider to client Auth providers.

Link copied to clipboard
fun Auth.digest(block: DigestAuthConfig.() -> Unit)

Install client DigestAuthProvider.