Zaid
02/19/2018, 5:03 PMres.status(200).json({"message":"foo","something":"something"})
I am trying to reproduce the same functionality with ktor and below is what i tried and it is not getting captured at client side, can someone please help me to wright it in ktor (in single line if possible )
call.response.status(HttpStatusCode.OK)
val item = ResponseJson("foo" , "something")
call.respond(item)
cy
02/19/2018, 5:04 PMcy
02/19/2018, 5:05 PMZaid
02/19/2018, 5:12 PMinstall(ContentNegotiation) {
jackson {
configure(SerializationFeature.INDENT_OUTPUT, true)
registerModule(JavaTimeModule())
}
}
cy
02/19/2018, 5:24 PMcy
02/19/2018, 5:24 PMcy
02/19/2018, 5:24 PMit is not getting captured at client sidewhat are the symptoms ?
Zaid
02/19/2018, 5:31 PMretrofit2.adapter.rxjava.HttpException: HTTP 406 Not Acceptable
sorry for confusing it by saying “not captured”xxxifan
02/23/2018, 12:57 AMxxxifan
02/23/2018, 12:57 AMZaid
02/27/2018, 7:49 AM