class BasicAuthProvider : AuthProvider
Client basic authentication provider.
BasicAuthProvider(username: String, password: String, realm: String? = null, sendWithoutRequest: Boolean = false)
Client basic authentication provider. |
val sendWithoutRequest: Boolean
Wait for HttpStatusCode.Unauthorized to send credentials. |
suspend fun addRequestHeaders(request: HttpRequestBuilder): Unit
Add authentication method headers and creds. |
|
fun isApplicable(auth: HttpAuthHeader): Boolean
Check if current provider is applicable to the request. |