Requests_Transport_fsockopen::accept_encoding() protected WP 1.0
Retrieve the encodings we can accept
{} It's a method of the class: Requests_Transport_fsockopen{}
No Hooks.
Return
String. Accept-Encoding header value
Usage
$result = Requests_Transport_fsockopen::accept_encoding();
Code of Requests_Transport_fsockopen::accept_encoding() Requests Transport fsockopen::accept encoding WP 5.6
protected static function accept_encoding() {
$type = array();
if (function_exists('gzinflate')) {
$type[] = 'deflate;q=1.0';
}
if (function_exists('gzuncompress')) {
$type[] = 'compress;q=0.5';
}
$type[] = 'gzip;q=0.5';
return implode(', ', $type);
}