class Config
JsonFeature configuration that is used during installation
Config()
JsonFeature configuration that is used during installation |
var acceptContentTypes: List<ContentType>
List of content types that are handled by this feature.
It also affects |
|
var receiveContentTypeMatchers: List<ContentTypeMatcher>
List of content type matchers that are handled by this feature. Please note that wildcard content types are supported but no quality specification provided. |
|
var serializer: JsonSerializer?
Serializer that will be used for serializing requests and deserializing response bodies. |
fun accept(vararg contentTypes: ContentType): Unit
Adds accepted content types. Be aware that ContentType.Application.Json accepted by default is removed from
the list if you use this function to provide accepted content types.
It also affects |
|
fun receive(matcher: ContentTypeMatcher): Unit
Adds accepted content types. Existing content types will not be removed. |