register

fun <T : ContentConverter> register(contentType: ContentType, converter: T, configuration: T.() -> Unit = {})

Registers a contentType to a specified converter with an optional configuration script for converter