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