← Back to Kairo Docs|API Reference (Dokka)

Package-level declarations

Types

Link copied to clipboard
class KairoConverter(json: KairoJson) : ContentConverter

Ktor ContentConverter adapted from JacksonConverter that preserves full generic type information. Unlike Ktor's built-in converter, this uses KairoType to avoid JVM type erasure during serialization and deserialization.

Functions

Link copied to clipboard
fun ContentNegotiationConfig.kairoConversion(json: KairoJson = KairoJson(), contentType: ContentType = ContentType.Application.Json)

Registers KairoConverter for content negotiation on a Ktor HTTP client.

fun ContentNegotiationConfig.kairoConversion(json: KairoJson = KairoJson(), contentType: ContentType = ContentType.Application.Json)

Registers KairoConverter for content negotiation on a Ktor HTTP server.