object Companion
source · line 45public
public companion
Construction and parsing of this structured HTTP field.
function parseOrNone
source · line 95public
public fun parseOrNone(value: List<Byte>, fieldName: String = "WWW-Authenticate"): HttpAuthChallenge?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter value
source · line 95public
value: List<Byte>
parameter fieldName
source · line 95public
fieldName: String = "WWW-Authenticate"
function parse
source · line 89public
public fun parse(value: String, fieldName: String = "WWW-Authenticate"): HttpAuthChallenge
Parses the complete field value, throwing HttpFieldParseException for malformed syntax.
parameter value
source · line 89public
value: String
parameter fieldName
source · line 89public
fieldName: String = "WWW-Authenticate"
function withToken68
source · line 49public
public fun withToken68(scheme: String, token68: String): HttpAuthChallenge
Constructs a scheme with a validated token68 payload.
parameter scheme
source · line 49public
scheme: String
parameter token68
source · line 49public
token68: String
function parseList
source · line 55public
public fun parseList(value: List<Byte>, fieldName: String = "WWW-Authenticate"): Array<HttpAuthChallenge>
Parses all authentication challenges in one field value.
parameter fieldName
source · line 55public
fieldName: String = "WWW-Authenticate"
parameter value
source · line 55public
value: List<Byte>
function parseOrNone
source · line 103public
public fun parseOrNone(value: String, fieldName: String = "WWW-Authenticate"): HttpAuthChallenge?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter fieldName
source · line 103public
fieldName: String = "WWW-Authenticate"
parameter value
source · line 103public
value: String
function parseFields
source · line 73public
public fun parseFields(fields: List<HttpField>, fieldName: String = "WWW-Authenticate"): Array<HttpAuthChallenge>
Parses selected authentication challenge fields in their original order.
parameter fields
source · line 73public
fields: List<HttpField>
parameter fieldName
source · line 73public
fieldName: String = "WWW-Authenticate"
function parse
source · line 79public
public fun parse(value: List<Byte>, fieldName: String = "WWW-Authenticate"): HttpAuthChallenge
Parses the complete field value, throwing HttpFieldParseException for malformed syntax.
parameter fieldName
source · line 79public
fieldName: String = "WWW-Authenticate"
parameter value
source · line 79public
value: List<Byte>
function parseList
source · line 68public
public fun parseList(value: String, fieldName: String = "WWW-Authenticate"): Array<HttpAuthChallenge>
Parses all authentication challenges in one field value.
parameter value
source · line 68public
value: String
parameter fieldName
source · line 68public
fieldName: String = "WWW-Authenticate"