Haskell’s Network.Browser module seems to not do any compression. How can I configure it so that it does gzip compression assuming that the server supports it (or fall back to no compression if it doesn’t) ?
Haskell’s Network.Browser module seems to not do any compression. How can I configure it
Share
Here’s a quick version of the “rather easy” solution rkhayrov refers to:
I ran a couple of tests with the following:
It works as expected on both the Yahoo (compressed) and Google (uncompressed) home pages.