WordPress at a glance
function is not described

WP_Http_Encoding::should_decode() public WP 2.8.0

Whether the content be decoded based on the headers.

{} It's a method of the class: WP_Http_Encoding{}

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = WP_Http_Encoding::should_decode( $headers );
$headers(array|string) (required)
All of the available headers.

Changelog

Since 2.8.0 Introduced.

Code of WP_Http_Encoding::should_decode() WP 5.7

<?php
public static function should_decode( $headers ) {
	if ( is_array( $headers ) ) {
		if ( array_key_exists( 'content-encoding', $headers ) && ! empty( $headers['content-encoding'] ) ) {
			return true;
		}
	} elseif ( is_string( $headers ) ) {
		return ( stripos( $headers, 'content-encoding:' ) !== false );
	}

	return false;
}