Home  Contents

rawio:getCompression

Rawio Core4 Lua Event System

SYNOPSIS

name = handle:getCompression()

DESCRIPTION

Returns information whether the handle uses compressed data. Currently compression is only supported for SSL connections. Compression is automatically enabled if the peer supports compression, too.

RETURN VALUE

Returns the string "null" if no compression is active and the string "deflate" when compression is being used. If the handle has no support for compression, returns nil.