Documentation

ResponseCacheItem
in package

Description of ResponseCacheItem

Tags
author

zozlak

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

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
self

send()

public send([bool $compress = false ]) : void
Parameters
$compress : bool = false

        
On this page

Search results