object Companion
source · line 44public
public companion
Construction and parsing of this structured HTTP field.
function parseOrNone
source · line 78public
public fun parseOrNone(value: String, fieldName: String = "Authorization"): HttpCredentials?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter fieldName
source · line 78public
fieldName: String = "Authorization"
parameter value
source · line 78public
value: String
function parse
source · line 54public
public fun parse(value: List<Byte>, fieldName: String = "Authorization"): HttpCredentials
Parses the complete field value, throwing HttpFieldParseException for malformed syntax.
parameter fieldName
source · line 54public
fieldName: String = "Authorization"
parameter value
source · line 54public
value: List<Byte>
function withToken68
source · line 48public
public fun withToken68(scheme: String, token68: String): HttpCredentials
Constructs a scheme with a validated token68 payload.
parameter scheme
source · line 48public
scheme: String
parameter token68
source · line 48public
token68: String
function parse
source · line 64public
public fun parse(value: String, fieldName: String = "Authorization"): HttpCredentials
Parses the complete field value, throwing HttpFieldParseException for malformed syntax.
parameter fieldName
source · line 64public
fieldName: String = "Authorization"
parameter value
source · line 64public
value: String
function parseOrNone
source · line 70public
public fun parseOrNone(value: List<Byte>, fieldName: String = "Authorization"): HttpCredentials?
Parses the complete value, returning None for HttpFieldParseException while propagating unrelated failures.
parameter fieldName
source · line 70public
fieldName: String = "Authorization"
parameter value
source · line 70public
value: List<Byte>