fabian
02/26/2019, 9:12 PMContentConverter
like the JacksonConverter
is installed?Sergey Bondari
02/26/2019, 9:41 PMpost("/foo") {
call.receiveStream().use {
// raw bytes from input body
}
// or
call.receiveChannel() // will give you a ByteReadChannel primitive for the lowest level reading routine.
}
there are many flavors of receive. When you have JSON transformer, you can do call.receive<Foo>()
and it will attempt to deserialize payload into a Foo
class instancefabian
02/26/2019, 10:53 PM