文字

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

参见

  • HttpResponse::getGzip() - Get gzip
上一篇: 下一篇: