ResponseCacheItem
in package
Description of ResponseCacheItem
Tags
Table of Contents
Properties
- $body : string
- $headers : array<string, string|array<string|int, string>>
- $hit : bool
- $responseCode : int
Methods
- __construct() : mixed
- deserialize() : self
- send() : void
- serialize() : string
Properties
$body
public
string
$body
$headers
public
array<string, string|array<string|int, string>>
$headers
$hit
public
bool
$hit
$responseCode
public
int
$responseCode
Methods
__construct()
public
__construct([string $body = '' ][, int $responseCode = 0 ][, array<string, string|array<string|int, string>> $headers = [] ][, bool $hit = false ]) : mixed
Parameters
- $body : string = ''
- $responseCode : int = 0
- $headers : array<string, string|array<string|int, string>> = []
- $hit : bool = false
deserialize()
public
static deserialize(string $data) : self
Parameters
- $data : string
Return values
selfsend()
public
send([bool $compress = false ]) : void
Parameters
- $compress : bool = false
serialize()
public
serialize() : string