ktor-server-core / io.ktor.features / DataConversion / Configuration / convert

convert

fun convert(klass: KClass<*>, convertor: ConversionService): Unit

Register a convertor for klass type

fun convert(ktype: KType, convertor: ConversionService): Unit

Register a convertor for ktype type

fun convert(klass: KClass<*>, configure: DelegatingConversionService.() -> Unit): Unit

Register and configure convertor for type klass

inline fun <reified T> convert(noinline configure: DelegatingConversionService.() -> Unit): Unit

Register and configure convertor for reified type T