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.