I guess the Any is to support String, ByteArray and any object to be used with the JsonFeature?
n
Nikky
09/19/2018, 1:22 PM
that is all fine when the json implementations only use reflection
i think this should be
body: T
where T is
reified T : Any
so it can be used in a TypeInfo and passed down the pipeline
Nikky
09/19/2018, 1:25 PM
that would allow better registering of custom serializers on the kotlinx-serializer feature for se, since atm i can oly match by KClass<*> which dies when it encounters generics or arrays
d
Deactivated User
09/19/2018, 1:27 PM
hat would propagate the type everywhere, and classes are not reified only methods. Maybe there could be an inline method to set the body, that stores the body along the typeinfo in another var