WP_Http_Encoding
- Since
- 2.8.0
- Source
wp-includes/class-wp-http-encoding.php:17
Core class used to implement deflate and gzip transfer encoding support for HTTP requests.
Description
Includes RFC 1950, RFC 1951, and RFC 1952.
Compatibility
- WordPress
- since 2.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 1
Every hook that fires from inside WP_Http_Encoding, in the order it appears in the class, grouped by the method that fires it.
Methods · 7
- compress()Compress raw string using the deflate format.
- decompress()Decompression of deflated string.
- compatible_gzinflate()Decompression of deflated string while staying compatible with the majority of servers.
- accept_encoding()What encoding types to accept and their priority values.
- content_encoding()What encoding the content used when it was compressed to send in the headers.
- should_decode()Whether the content be decoded based on the headers.
- is_available()Whether decompression and compression are supported by the PHP version.
Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/class-wp-http-encoding.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.