jackson

fun Configuration.jackson(contentType: ContentType = ContentType.Application.Json, streamBody: Boolean = true, block: JsonMapper.Builder.() -> Unit = {})(source)

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

You can learn more from the corresponding client and server documentation.

Report a problem

Parameters

contentType

the content type to send with a request

streamBody

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

block

a configuration block for JsonMapper.Builder


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

Deprecated

Use jackson(contentType, streamBody, block) instead

Replace with

jackson(contentType, streamBody = streamRequestBody, block)

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

You can learn more from the corresponding client and server documentation.

Report a problem

Parameters

contentType

the content type to send with a 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 JsonMapper.Builder