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.


Top ↑

Source

File: wp-includes/class-wp-http-encoding.php

	public static function content_encoding() {
		return 'deflate';
	}

Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.