Robert Jaros
03/31/2020, 8:52 PMAccept: application/xml;application/json
header when I call:
<http://httpClient.post|httpClient.post>(serviceUrl) {
contentType(ContentType.Application.Json)
accept(ContentType.Application.Xml)
body = MyClass(...)
}
Does such header even conform to HTTP standard?val httpClient = HttpClient(Apache) {
install(JsonFeature) {
serializer = KotlinxSerializer()
}
engine {
socketTimeout = 60_000
}
}
Accept
header should be separated by a comma, am I right?Dennis
04/01/2020, 7:51 AMAccept: text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c
Robert Jaros
04/01/2020, 2:19 PM