GsonConverter

class GsonConverter(gson: Gson = Gson()) : ContentConverter

A GSON converter for the ContentNegotiation plugin.

Constructors

Link copied to clipboard
fun GsonConverter(gson: Gson = Gson())

Functions

Link copied to clipboard
open suspend override fun deserialize(charset: Charset, typeInfo: TypeInfo, content: ByteReadChannel): Any?
Link copied to clipboard
open suspend override fun serialize(contentType: ContentType, charset: Charset, typeInfo: TypeInfo, value: Any): OutgoingContent
Link copied to clipboard
open suspend override fun serializeNullable(contentType: ContentType, charset: Charset, typeInfo: TypeInfo, value: Any?): OutgoingContent