Package io.ktor.serialization.kotlinx.cbor

Functions

Link copied to clipboard
fun Configuration.cbor(cbor: Cbor = DefaultCbor, contentType: ContentType = ContentType.Application.Cbor)

Registers the application/cbor (or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.

Properties

Link copied to clipboard
val DefaultCbor: Cbor

The default cbor configuration used in KotlinxSerializationConverter. The settings are: