
xdmp.setResponseCompression( value as Boolean, [options as String] ) as null
Enabble/disables HTTP GZIP Response compression
http://marklogic.com/xdmp/privileges/xdmp-add-response-header
xdmp.setResponseCompression(true,"compression-level=6");
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.