sgqlc icon indicating copy to clipboard operation
sgqlc copied to clipboard

HTTP endpoint class should allow compression of the data using gzip

Open asipras opened this issue 2 years ago • 1 comments

***This is not an issue but an enhancement request/proposal. ***

Currently Http end point class does not allow any method which we can use to compress data. Compression is helpful when you want to post Mutation data which is quite big.

One solution is to check whether the headers contains Content-Encoding: gzip and if does then compress data using gzip library.

asipras avatar May 05 '22 23:05 asipras

hi @asipras, while the idea is valid, I think it's out of scope of this project and standard endpoints. Of course, if you want to implement an alternative endpoint or add a flag to the constructor to support this, you're welcome, but I don't have time to work on such feature.

barbieri avatar May 06 '22 11:05 barbieri