HttpResponse::setGzip
(PECL pecl_http:0.10.0-1.5.5)
HttpResponse::setGzip — Set gzip
說明
static
bool HttpResponse::setGzip
( bool $gzip
)
Enable on-thy-fly gzip'ing of the sent entity.
參數
- gzip
-
whether GZip compression should be enabled
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。