Config
A ContentNegotiation configuration that is used during installation.
Constructors
Functions
Link copied to clipboard
open override fun <T : ContentConverter> register(contentType: ContentType, converter: T, configuration: T.() -> Unit)
Content copied to clipboard
Registers a contentType to a specified converter with an optional configuration script for a converter.
fun <T : ContentConverter> register(contentTypeToSend: ContentType, converter: T, contentTypeMatcher: ContentTypeMatcher, configuration: T.() -> Unit)
Content copied to clipboard
Registers a contentTypeToSend and contentTypeMatcher to a specified converter with an optional configuration script for a converter.