Used By
Used By | Description |
---|---|
wp-includes/Requests/Transport/fsockopen.php: Requests_Transport_fsockopen::request() | Perform a request |
Retrieve the encodings we can accept
(string) Accept-Encoding header value
File: wp-includes/Requests/Transport/fsockopen.php
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); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_transport_fsockopen/accept_encoding