ktor-server-core / io.ktor.features / ContentNegotiation / ConverterRegistration / <init>

<init>

ConverterRegistration(contentType: ContentType, converter: ContentConverter)

Specifies which converter to use for a particular contentType

Parameters

contentType - is an instance of ContentType for this registration

converter - is an instance of ContentConverter for this registration