invoke

operator fun ContentType.invoke(configure: MediaType.Builder.() -> Unit = {})(source)

Adds a media type definition for the response body using a ContentType receiver.

Report a problem

Parameters

configure

DSL to configure the MediaType.