Companion

object Companion

Functions

Link copied to clipboard
fun basicAuthChallenge(realm: String, charset: Charset?): HttpAuthHeader.Parameterized

Generates an AuthScheme.Basic challenge as a HttpAuthHeader.

Link copied to clipboard
fun digestAuthChallenge(realm: String, nonce: String = generateNonce(), domain: List<String> = emptyList(), opaque: String? = null, stale: Boolean? = null, algorithm: String = "MD5"): HttpAuthHeader.Parameterized

Generates an AuthScheme.Digest challenge as a HttpAuthHeader.