Builder
Properties
Functions
Link copied to clipboard
Sets an extra header parameter, inferring the serializer from the reified type T.
Sets an extra header parameter using a pre-built JsonElement, or removes it if value is null.
fun <T> extra(name: String, serializer: SerializationStrategy<T>, value: T?, jsonInstance: Json = Jwt.defaultJsonParser)
Sets an extra header parameter using an explicit SerializationStrategy.
Link copied to clipboard
fun <T> takeFrom(serializer: SerializationStrategy<T>, value: T, jsonInstance: Json = Jwt.defaultJsonParser)
Merges all fields from value into this builder, encoded using serializer.