HTTP client with zip compression for Ruby


#1

Is there any client for Ruby capable of doing HTTP with gzip
compression?


#2

Can anyone direct me here?


#3

You may need to combine an HTTP socket with ZLib by yourself. You could
simply analyse the headers for the Content-encoding and use
ZLib::inflate on the body if it equals ‘gzip’. It shouldn’t be hard at
all.