This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Fsockopen::accept_encoding()
Retrieve the encodings we can accept
Return
(string) Accept-Encoding header value
Source
File: wp-includes/Requests/src/Transport/Fsockopen.php
private static function accept_encoding() {
$type = [];
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);
}