Fork me on GitHub

@bernhard I don't know of any pre-packaged solution for ring, but you should be able to do it by wrapping the body with a (or (when (#{"gzip" "deflate"} (:content-encoding request))) or something like that


See a gist for doing this in rack, which is a ruby library that's similar to ring in philosophy (in fact, ring took inspiration from rack):


Shameless plug: if you'd like to log the exact headers (and even the body during development) and other stuff from the request & response you might want to take a look to simple_smile