CompressedBody
in package
FinalYes
Результат сжатия тела запроса: байты и фактическая кодировка.
Кодировка привязана к телу, а не к настройке: компрессор вправе пропустить сжатие маленького тела, и заголовок Content-Encoding при этом не отправляется.
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$body read-only
public
string
$body
$encoding read-only
public
string|null
$encoding
Methods
__construct()
public
__construct(string $body, string|null $encoding) : mixed
Parameters
- $body : string
-
тело запроса
- $encoding : string|null
-
значение Content-Encoding либо null