[client] Add simple support for gzip compression by swallez · Pull Request #63230 · elastic/elasticsearch

Adds a RestClient.setCompressionEnabled() setting that will gzip- compress request bodies and add a Accept-Encoding: gzip header so that the ES server can send compressed responses. Fixes #62044