WPDev.one
Core Class

WP_Http_Encoding

class WP_Http_Encoding // Constructor: function Object() { [native code] }

Core class used to implement deflate and gzip transfer encoding support for HTTP requests.

Methods 7 methods

Method / Return Description
compress()
(string

Compress raw string using the deflate format.

Parameters: $raw: mixed, $level: mixed, $supports: mixed
decompress()
(string

Decompression of deflated string.

Parameters: $compressed: mixed, $length: mixed
compatible_gzinflate()
(string

Decompression of deflated string while staying compatible with the majority of servers.

Parameters: $gz_data: mixed
accept_encoding()
string

What encoding types to accept and their priority values.

Parameters: $url: mixed, $args: mixed
content_encoding()
string

What encoding the content used when it was compressed to send in the headers.

should_decode()
bool

Whether the content be decoded based on the headers.

Parameters: $headers: mixed
is_available()
bool

Whether decompression and compression are supported by the PHP version.

Class Information

Since Version
2.8.0
Source File
wp-includes/class-wp-http-encoding.php
Advertisement