dylan
04/29/2020, 3:06 PMHttpClient with kotlinx.serializtion where every api endpoint has a custom vendor specific content-type? if I use the accept() function with multiple content-types they are also added to the accept header on the request which I don't want because we already specifiy that where I make the actual request.
So api call A needs to send Accept: application/vnd.a and in return will get the Content-Type: application/vnd.a back in the response header and B sends application/vnd.b and is going to get application/vnd.b back.
but I get NoTransformationFoundException: ByteBufferChannel => Serializable data class.Ayman Izzeldin
04/29/2020, 6:40 PMval apiAClient = myHttpClient.config {
Json { acceptContentTypes = acceptContentTypes + ContentType.parse("application/vnd.a") }
}dylan
04/29/2020, 9:13 PM