Hi Kendall,
This is usually handled by the web server (by default, Jetty). Maybe this helps?
http://blog.max.berger.name/2010/01/jetty-7-gzip-filter.html
Cheers, Christian
On Wed, Nov 16, 2016 at 2:29 AM, Kendall Shaw kendall.shaw@workday.com wrote:
I should clarify that I’m asking about content negotiation. %rest:produces is described as constraining based on the Accept header. Should I explicitly look for Accept-Encoding and produce binary data that is in one of the requested compressed formats, or is there something in basex’s restxq implementation that does this?
Kendall
From: basex-talk-bounces@mailman.uni-konstanz.de on behalf of Kendall Shaw kendall.shaw@workday.com Date: Tuesday, November 15, 2016 at 4:58 PM To: BaseX basex-talk@mailman.uni-konstanz.de Subject: [basex-talk] Restxq handling accept-encoding
To return compressed text data, should I explicitly look for Accept-Encoding and use java to deflate or gzip output of convert:binary-to-string(db:retrieve(…))?
Kendall