<mateuszwieloch> Hey I'm trying to build a terminal UI that will have ability to choose between multiple options like in the image. I'd appreciate advice where to start - what crystal library provides needed functionality, whether to go low level like NCurses bindings or is there something providing it out of the box?
yxhuvud: because of a bug in the stdlib, a response's body is not always decompressed, and rather than checking if it was properly done, I've made a patch in my code to send the Content-Encoding header, which disables auto decompression, and do that by myself.
but, Compress::Gzip::Reader and Compress::Deflate::Reader both takes IOs, not Strings
if gets to end has been called, it will be nothing more to decompress anyhow, so it wouldn't matter
my problem is that `response.body` is a String, and I have to feed it to Compress::Gzip::Reader
<Blacksmoke16> `body_io` is only set if you're using the block version of one of the request methods
So I though: let's use response.body_io instead, to directly have an IO