mattbaird / elastigo

A Go (golang) based Elasticsearch client library.
Apache License 2.0
943 stars 241 forks source link

Add gzip/compression support #263

Closed travisjeffery closed 8 years ago

travisjeffery commented 8 years ago

Adds Gzip support for requests, really useful for saving bandwidth with bulk requests.

vrecan commented 8 years ago

that seems fine, if we could get a couple unit tests this could get merged.

travisjeffery commented 8 years ago

Added some tests, I tried to make an error check by getting json.Marshal to return an error based on what I passed in but it handled everything I threw at it.

vrecan commented 8 years ago

thanks!