Robert Jaros
Accept: application/xml;application/json
<http://httpClient.post|httpClient.post>(serviceUrl) { contentType(ContentType.Application.Json) accept(ContentType.Application.Xml) body = MyClass(...) }
val httpClient = HttpClient(Apache) { install(JsonFeature) { serializer = KotlinxSerializer() } engine { socketTimeout = 60_000 } }
Accept
Dennis
Accept: text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c
A modern programming language that makes developers happier.