class ContentNegotiation
This feature provides automatic content conversion according to Content-Type and Accept headers
See normative documents:
registrations
- is a list of registered converters for ContentTypes
class Configuration
Configuration type for ContentNegotiation feature |
|
data class ConverterRegistration
Specifies which converter to use for a particular contentType |
|
companion object Feature : ApplicationFeature<ApplicationCallPipeline, Configuration, ContentNegotiation>
Implementation of an ApplicationFeature for the ContentNegotiation |
ContentNegotiation(registrations: List<ConverterRegistration>, acceptContributors: List<AcceptHeaderContributor>)
This feature provides automatic content conversion according to Content-Type and Accept headers |
val registrations: List<ConverterRegistration>
is a list of registered converters for ContentTypes |
val key: AttributeKey<ContentNegotiation>
Unique key that identifies a feature |
fun install(pipeline: ApplicationCallPipeline, configure: Configuration.() -> Unit): ContentNegotiation
Feature installation script |