ByteArrayConverter

class ByteArrayConverter : ContentConverter

A ContentConverter which does nothing, it simply passes byte arrays through as they are. This is useful if you want to register your own custom binary content type with the ContentNegotiation plugin.

Constructors

Link copied to clipboard
constructor()

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?