content

fun content(configure: MediaType.Builder.() -> Unit)(source)

Provide a media type definition for the response body.

This applies to all registered default content types, as defined in the ContentNegotiation plugin.

Report a problem


val content: Map<ContentType, MediaType>(source)

Map of media type to MediaType object.

Report a problem