BasicAuth
class BasicAuth
Deprecated: [BasicAuth] deprecated, use [Auth] feature with [Basic] provider instead.
HttpClient feature that sets an Authorization: basic
header
as specified in RFC-2617 using username and password.
https://www.ietf.org/rfc/rfc2617.txt
Types
class Configuration |
|
companion object Feature : |
Constructors
HttpClient feature that sets an |
Properties
val password: String : user password. |
|
val username: String : user name. |
Companion Object Properties
val key: AttributeKey<BasicAuth> The AttributeKey for this feature. |
Companion Object Functions
fun install(feature: BasicAuth, scope: HttpClient): Unit Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: Configuration.() -> Unit): BasicAuth Builds a TFeature by calling the block with a TConfig config instance as receiver. |