serialization

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

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


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

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


fun ContentNegotiation.Configuration.serialization()
fun ContentNegotiation.Configuration.serialization(contentType: ContentType)
fun ContentNegotiation.Configuration.serialization(contentType: ContentType, json: Json)

Register kotlinx.serialization converter into ContentNegotiation feature