Fork me on GitHub
#ring
<
2017-02-26
>
baptiste-from-paris10:02:00

thx @weavejester, I would love to find out how, did not succeed yet

weavejester12:02:01

@baptiste-from-paris Well, the ‘how’ depends on what you mean. If you mean you want to turn the body into a byte-array, then you could use a library like https://github.com/ztellman/byte-streams

weavejester12:02:11

If you want to serialise the entire request you could use something like https://github.com/ptaoussanis/nippy

weavejester12:02:52

If you want to ensure that the body is cached, you can write some middleware that reads in the InputStream body into a byte array, then wrap that in a ByteArrayInputStream.