Requests_Transport_fsockopen::accept_encoding() WordPress Method
The accept_encoding() method of the Requests_Transport_fsockopen class is used to retrieve the value of the Accept-Encoding header from a request.
Requests_Transport_fsockopen::accept_encoding() #
Retrieve the encodings we can accept
Return
(string) Accept-Encoding header value
Source
File: wp-includes/Requests/Transport/fsockopen.php
335 336 337 338 339 340 341 342 343 344 345 346 347 348 | 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 ); } |
Expand full source codeCollapse full source codeView on TracView on GitHub