MarkLogic 10 Product Documentation
xdmp:set-response-compressionxdmp:set-response-compression(
$value as xs:boolean,
[$options as xs:string]
) as empty-sequence()
Summary
Enabble/disables HTTP GZIP Response compression
Parameters |
value |
true to enable GZIP compression false otherwise |
options |
Options. The default is ().
Options include:
- "compression-level=[0-9]"
- Changes the compression level. Level 0 is uncompressed, level 9 is maximum compression. Default is level 2.
|
Required Privileges
http://marklogic.com/xdmp/privileges/xdmp-add-response-header
Example
xdmp:set-response-compression(fn:true(),"compression-level=6")
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.