Package io.ktor.util.converters


Link copied to clipboard
interface ConversionService

Data conversion service that does serialization and deserialization to/from list of strings

Link copied to clipboard
class DataConversion(configuration: DataConversion.Configuration) : ConversionService

Data conversion plugin to serialize and deserialize types using converters registry

Link copied to clipboard
open class DataConversionException(message: String) : Exception

Thrown when failed to convert value

Link copied to clipboard
object DefaultConversionService : ConversionService

The default conversion service that supports only basic types and enums

Link copied to clipboard
class DelegatingConversionService(klass: KClass<*>, decoder: (values: List<String>) -> Any??, encoder: (value: Any?) -> List<String>?) : ConversionService

Implementation of ConversionService that delegates fromValues and toValues to decoder and encoder