Package io.ktor.serialization
Types
Link copied to clipboard
Configuration for client and server ContentNegotiation
plugin
Link copied to clipboard
A custom content converter that could be registered in ContentNegotiation plugin for any particular content type Could provide bi-directional conversion implementation. One of the most typical examples of content converter is a JSON content converter that provides both serialization and deserialization
Link copied to clipboard
open class ContentConvertException(message: String, cause: Throwable?) : Exception
Content copied to clipboard
Link copied to clipboard
class JsonConvertException(message: String, cause: Throwable?) : ContentConvertException
Content copied to clipboard
Link copied to clipboard
A custom content converter that could be used in the WebSockets plugin Could provide bi-directional conversion implementation. One of the most typical examples of the content converter is a JSON converter that provides both serialization and deserialization
Link copied to clipboard
open class WebsocketContentConvertException(message: String, cause: Throwable?) : ContentConvertException
Content copied to clipboard
Link copied to clipboard
class WebsocketConverterNotFoundException(message: String, cause: Throwable?) : WebsocketContentConvertException
Content copied to clipboard
Link copied to clipboard
class WebsocketDeserializeException(message: String, cause: Throwable?, frame: Frame) : WebsocketContentConvertException
Content copied to clipboard
Functions
Link copied to clipboard
fun Headers.suitableCharset(defaultCharset: Charset = Charsets.UTF_8): Charset
Content copied to clipboard
Detect suitable charset for an application call by Accept
header or fallback to defaultCharset