KotlinxStringSerializationHandler

data class KotlinxStringSerializationHandler(format: StringFormat, contentType: String) : BaseSerializationHandler<String>

Kotlinx serialization handler that uses a StringFormat. Serializes arguments as a composite structure, as if they were properties in a class.

Constructors

Link copied to clipboard
fun KotlinxStringSerializationHandler(format: StringFormat, contentType: String = if(format is Json) "application/json" else stringContentType)

Functions

Link copied to clipboard
open override fun deserializeArguments(arguments: String, serializers: ArgumentSerializers<String>): Map<String, *>
Link copied to clipboard
open override fun getSerializer(type: KType): KotlinxStringSerializer<*>
Link copied to clipboard
open override fun serializeArguments(arguments: Map<String, *>, serializers: ArgumentSerializers<String>): String

Properties

Link copied to clipboard
open override val contentType: String
Link copied to clipboard
val format: StringFormat

Sources

Link copied to clipboard