JacksonConverter

class JacksonConverter(objectMapper: ObjectMapper = jacksonObjectMapper(), streamRequestBody: Boolean = true) : ContentConverter

A content converter that uses Jackson

Parameters

objectMapper

a configured instance of ObjectMapper

streamRequestBody

if set to true, will stream request body, without keeping it whole in memory. This will set Transfer-Encoding: chunked header.

Constructors

Link copied to clipboard
constructor(objectMapper: ObjectMapper = jacksonObjectMapper(), streamRequestBody: Boolean = true)

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