class ElastomerClient::Middleware::Compress

Request middleware that compresses request bodies with GZip for supported versions of Elasticsearch.

It will only compress when there is a request body that is a String. This middleware should be inserted after JSON serialization.