WP_Http_Encoding::content_encoding() WordPress Method
The WP_Http_Encoding::content_encoding() method is used to determine the content encoding of an HTTP request. This is used to decompress the request body before it is passed to the WP_Http_Response::parse_body() method.
WP_Http_Encoding::content_encoding() #
What encoding the content used when it was compressed to send in the headers.
Return
(string) Content-Encoding string to send in the header.
Source
File: wp-includes/class-wp-http-encoding.php
public static function content_encoding() { return 'deflate'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |