The HttpResponse
PHP Manual

HttpResponse::setGzip

(PECL pecl_http >= 0.10.0)

HttpResponse::setGzipSet gzip

Описание

static bool HttpResponse::setGzip ( bool $gzip )

Enable on-thy-fly gzip'ing of the sent entity.

Параметри

gzip

whether GZip compression should be enabled

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Вж. също


The HttpResponse
PHP Manual