with a simple server running, I'm receiving on `ro...
# ktor
e
with a simple server running, I'm receiving on
routing { post("..") { call.receiveText()
some text which I'd like to translate into a class I can see
call.receive<T>: T
, but the moment I try it, I get > No Default Transformations found for class io.ktor.utils.io.ByteBufferChannel and expected type TypeInfo(type=class com.example.BodySchema, reifiedType=class com.example.BodySchema, kotlinType=com.example.BodySchema) for call /webhooks/format How can I define that transformation?
s
Do you just need to install a (de)serializer? https://ktor.io/docs/serialization.html
e
I'll try, thanks I found something similar for Ktor client, which I don't use, so I was confused