work? Maybe it is a bug (receiveText not working, or maybe it is intended)? Not sure.
Deactivated User
03/07/2018, 10:57 PM
If that works, you can create an extension method:
Copy code
suspend fun ApplicationCall.receiveRawText(): String = receiveChannel().readRemaining().readText(Charsets.UTF_8.newDecoder())
o
orangy
03/08/2018, 9:25 AM
If you don’t want JSON transformations to kick in at all, you just don’t install ContentNegotiation. Or do you want it different in different endpoints? What’s the use case?
w
warriorprincess
03/08/2018, 9:56 AM
Its working now by consuming just once. @orangy there is no particular use case here I was just wondering about dumping the whole string 🙂