just-ai/jaicf-kotlin

Safe wrappers for HttpBotRequest content

Denire opened this issue · 0 comments

HttpBotRequest uses read-once streams which are not so safe for public api. An error can easily happen if someone would want to log the content before it is passed next to BotChannel.

This issue suggests wrapping HttpBotRequest streams content to read it multiple times.