serialization

fun Configuration.serialization(contentType: ContentType, format: BinaryFormat)

Register kotlinx.serialization converter into ContentNegotiation plugin with the specified contentType and binary format (such as CBOR, ProtoBuf)


fun Configuration.serialization(contentType: ContentType, format: StringFormat)

Register kotlinx.serialization converter into ContentNegotiation plugin with the specified contentType and string format (such as Json)