fun Configuration.serialization(contentType: ContentType, format: BinaryFormat): Unit
Register kotlinx.serialization converter into ContentNegotiation feature with the specified contentType and binary format (such as CBOR, ProtoBuf)
fun Configuration.serialization(contentType: ContentType, format: StringFormat): Unit
Register kotlinx.serialization converter into ContentNegotiation feature with the specified contentType and string format (such as Json)
fun Configuration.serialization(): Unit
fun Configuration.serialization(contentType: ContentType): Unit
fun Configuration.serialization(contentType: ContentType, json: Json): Unit
Register kotlinx.serialization converter into ContentNegotiation feature