ContentNegotiation
class ContentNegotiation
This feature provides automatic content conversion according to Content-Type and Accept headers
See normative documents:
- https://tools.ietf.org/html/rfc7231#section-5.3
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation
Parameters
registrations
- is a list of registered converters for ContentTypes
Types
class Configuration Configuration type for ContentNegotiation feature |
|
data class ConverterRegistration Specifies which converter to use for a particular contentType |
|
companion object Feature : Implementation of an ApplicationFeature for the ContentNegotiation |
Constructors
ContentNegotiation( This feature provides automatic content conversion according to Content-Type and Accept headers |
Properties
val registrations: List<ConverterRegistration> is a list of registered converters for ContentTypes |
Companion Object Properties
val key: AttributeKey<ContentNegotiation> Unique key that identifies a feature |
Companion Object Functions
fun install( Feature installation script |