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

<init>

ContentNegotiation(registrations: List<ConverterRegistration>, acceptContributors: List<AcceptHeaderContributor>)

This feature provides automatic content conversion according to Content-Type and Accept headers

See normative documents:

Parameters

registrations - is a list of registered converters for ContentTypes