WP_Http_Encoding::compress

SummerySummery

Compress raw string using the deflate format.

Syntax

WP_Http_Encoding::compress( string $raw, int $level = 9, string $supports = null )

DescriptionDescription

Supports the RFC 1951 standard.

ParametersParameters

$raw

(string) (Required) String to compress.

$level

(int) (Optional) Compression level, 9 is highest.

Default value: 9

$supports

(string) (Optional) not used. When implemented it will choose the right compression based on what the server supports.

Default value: null

ReturnReturn

(string|false) False on failure.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top