register
open override fun <T : ContentConverter> register(contentType: ContentType, converter: T, configuration: T.() -> Unit)(source)
Registers a contentType to a specified converter with an optional configuration script for a converter.
Besides the exact matches, the converter is used for content types with the matching structured syntax suffix as registered in RFC 6839. For example, a converter registered for application/json also handles application/problem+json.
fun <T : ContentConverter> register(contentTypeToSend: ContentType, converter: T, contentTypeMatcher: ContentTypeMatcher, configuration: T.() -> Unit)(source)
Registers a contentTypeToSend and contentTypeMatcher to a specified converter with an optional configuration script for a converter.