jackson

fun Configuration.jackson(contentType: ContentType = ContentType.Application.Json, streamRequestBody: Boolean = true, block: ObjectMapper.() -> Unit = {})

Registers the application/json content type to the ContentNegotiation plugin using Jackson.

You can learn more from Content negotiation and serialization.

Parameters

contentType

the content type to send with request

streamRequestBody

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

block

a configuration block for ObjectMapper