Skip To Content

INTEGRAL

INTEGRAL DSL Reference Guide

Jump directly to: 

::my.app.SetCompression(compression)

The SetCompression function sets the compression method that INTEGRAL Web Server utilizes to serve the output buffer to the web client.

Parameters

compression

An integer that stipulates the compression method.

Return Value

The function returns DV_RET_OK on success and DV_RET_ERR on failure.

Notes

This function can be called multiple times during a web session. However, it makes sense to call SetCompression only once. This is because each call to SetCompression discards any previous state set by the same function.

Example 1

::my.app.SetCompression(DV_COMPRESS_GZIP);