KotlinxSerializationConverter

class KotlinxSerializationConverter(format: SerialFormat) : ContentConverter

Creates a converter serializing with the specified string format and defaultCharset (optional, usually it is UTF-8).

Constructors

Link copied to clipboard
fun KotlinxSerializationConverter(format: SerialFormat)

Functions

Link copied to clipboard
open suspend override fun deserialize(charset: Charset, typeInfo: TypeInfo, content: ByteReadChannel): Any?
Link copied to clipboard
open suspend override fun serialize(contentType: ContentType, charset: Charset, typeInfo: TypeInfo, value: Any): OutgoingContent