Parameterized
class Parameterized(authScheme: String, parameters: List<HeaderValueParam>, encoding: HeaderValueEncoding) : HttpAuthHeader
Content copied to clipboard
Describes a parameterized authentication header that is represented by a set of parameters encoded with encoding.
Constructors
Link copied to clipboard
fun Parameterized(authScheme: String, parameters: Map<String, String>, encoding: HeaderValueEncoding = HeaderValueEncoding.QUOTED_WHEN_REQUIRED)
Content copied to clipboard
Link copied to clipboard
fun Parameterized(authScheme: String, parameters: List<HeaderValueParam>, encoding: HeaderValueEncoding = HeaderValueEncoding.QUOTED_WHEN_REQUIRED)
Content copied to clipboard
Functions
Link copied to clipboard
Encodes the header with the default HeaderValueEncoding for this header.
Encodes the header with a specified encoding.
Link copied to clipboard
Encodes the header with the default HeaderValueEncoding for this header.
Link copied to clipboard
fun withParameter(name: String, value: String): HttpAuthHeader.Parameterized
Content copied to clipboard
Copies this Parameterized appending a new parameter name.
Link copied to clipboard
fun withReplacedParameter(name: String, value: String): HttpAuthHeader.Parameterized
Content copied to clipboard
Copies this Parameterized replacing parameters with name assigning new value or appending if no such parameters found. If there were several pairs they will be reduced into a single pair at position of first occurrence discarding following pairs with this name.
Properties
Link copied to clipboard
Link copied to clipboard
parameters encoding method, one of HeaderValueEncoding
Link copied to clipboard