(PECL pecl_http >= 0.10.0)
HttpResponse::setGzip — Set gzip
$gzip
Enable on-thy-fly gzip'ing of the sent entity.
gzip
whether GZip compression should be enabled
如果成功則回傳 TRUE,失敗則回傳 FALSE。
TRUE
FALSE